summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* nutdec: check av_new_packet return valueVittorio Giovara2014-10-21
| | | | | CC: libav-stable@libav.org Bug-Id: CID 733713
* nutenc: check for negative index rather than assertVittorio Giovara2014-10-21
| | | | | CC: libav-stable@libav.org Bug-Id: CID 703721
* rmdec: stricter error check to avoid theoretical unitialized useVittorio Giovara2014-10-21
| | | | | CC: libav-stable@libav.org Bug-Id: CID 90558
* rmdec: check av_new_packet return valueVittorio Giovara2014-10-21
| | | | | CC: libav-stable@libav.org Bug-Id: CID 733714
* flvdec: make sure to check create_stream and report the same errorVittorio Giovara2014-10-21
| | | | | CC: libav-stable@libav.org Bug-Id: CID 732242
* flvdec: avoid unitialized use of a struct memberVittorio Giovara2014-10-21
| | | | | CC: libav-stable@libav.org Bug-Id: CID 718141
* smoothstreamingenc: explict cast to avoid overflowVittorio Giovara2014-10-21
| | | | | CC: libav-stable@libav.org Bug-Id: CID 732248
* rtpproto: Free the addrinfo pointer on failureLuca Barbato2014-10-20
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1238797
* nutdec: Prevent a memory corruptionLuca Barbato2014-10-20
| | | | | | Chapters do not have an event_flags field. Bug-Id: CID 1231990
* rtpdec_hevc: drop unnecessary checkVittorio Giovara2014-10-20
| | | | | | len is always >=1 in that case. Bug-Id: CID 1238784
* rtmpproto: remove dead codeVittorio Giovara2014-10-20
| | | | | | | Expression already evaluated before, redundant since 053386864219eccbcca1886c55f902f9555428a5. Bug-Id: CID 732199
* wtv: clean memory on errorVittorio Giovara2014-10-20
| | | | | CC: libav-stable@libav.org Bug-Id: CID 718002
* wtv: check seek_by_sector return valueVittorio Giovara2014-10-20
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1198258
* aviobuf: check context before using itVittorio Giovara2014-10-20
| | | | | | | Avoid a possible null pointer dereference. CC: libav-stable@libav.org Bug-Id: CID 1135769
* avio: fix sizeof argumentMichael Niedermayer2014-10-20
| | | | | CC: libav-stable@libav.org Bug-Id: CID 732284
* idcin: fix return checkVittorio Giovara2014-10-20
| | | | | CC: libav-stable@libav.org Bug-Id: CID 732198
* rtmp: Always call rtmp_close() on rtmp_open() failureAlexander Drozdov2014-10-18
| | | | | | | | | | | | | Prevent possible memory leaks. Connect to nginx and request a non-existent resource to trigger the issue. CC: libav-stable@libav.org Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Uwe L. Korn <uwelk@xhochy.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* urlprotocol: remove unused url_interrupt_cb declarationAnton Khirnov2014-10-18
| | | | It is a remnant of the old interrupt callback API.
* rtmpproto: Add pause supportUwe L. Korn2014-10-17
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: Track last received timestampUwe L. Korn2014-10-17
| | | | | | | | Some RTMP commands need the most recent timestamp as their parameter, so keep track of it. This must be the most recent one and not e.g. the max received timestamp as it can decrease again through seeking. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: Add getStreamLength call to query durationUwe L. Korn2014-10-17
| | | | | | | | | | In (non-live) streams with no metadata, the duration of a stream can be retrieved by calling the RTMP function getStreamLength with the playpath. The server will return a positive duration upon the request if the duration is known, otherwise either no response or a duration of 0 will be returned. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: Add function to read a number responseUwe L. Korn2014-10-17
| | | | | | | | | Packets that contain a number as a result to a rtmp function call are structured the same way (String, Number, Null, Number). This new method also includes more bounds checks to better handle packets that are not structured as expected. Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: Make avformat_free_context handle NULLLuca Barbato2014-10-17
| | | | | | | Work as the other free()-like functions. Bug-Id: CID 1087081 CC: libav-stable@libav.org
* rtsp: Check a memory allocationMichael Lynch2014-10-16
| | | | | CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: Fix a typoMartin Storsjö2014-10-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_hevc: Use av_realloc instead of av_malloc+memcpyMartin Storsjö2014-10-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_hevc: Rename a variable for clarityMartin Storsjö2014-10-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: Correctly check the color transfer characteristics rangeVittorio Giovara2014-10-15
| | | | Reported-by: Ruoyu <liangry@ucweb.com>
* sdp: Provide out of bound parameter sets for HEVC if extradata is setMartin Storsjö2014-10-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_hevc: Parse out of band vps/sps/pps/sei from fmtp linesMartin Storsjö2014-10-15
| | | | | | These are assembled into extradata in the order vps/sps/pps/sei. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: switch to AVCodecContext.framerate for demuxingAnton Khirnov2014-10-15
|
* mov: Handle tfdt atomsMartin Storsjö2014-10-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Write tfdt atomsMartin Storsjö2014-10-14
| | | | | | | | | | | These allow getting the absolute start timestamp of a fragment without reading preceding timestamps. This fixes sync between tracks if starting from fragments in different streams that don't align exactly. This also is a prerequisite for producing DASH content. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: use initial_padding instead of deprecated delayAnton Khirnov2014-10-13
|
* icecast: Do not use chunked postMark McGough2014-10-12
| | | | | | | | | | | | | Icecast uses HTTP 1.0 while Libav uses HTTP 1.1 and enables by default chunked post. Icecast actually forwards the HTTP chunk headers to the listener as part of the media stream (without the chunk encoding HTTP headers) causing the players to lose sync. Disabling the option is enough to feed icecast properly. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* movenc: Simplify code by using an existing local pointerMartin Storsjö2014-10-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Print a warning for an unhandled case of nonzero start dts with ↵Martin Storsjö2014-10-12
| | | | | | empty_moov Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Write edit lists for fragmented files as well, if necessaryMartin Storsjö2014-10-12
| | | | | | | | | | | This is necessary to get the right timestamp offset for content that starts with dts != 0. This currently only helps when writing fragmented files with a non-empty moov atom. When writing an empty moov atom, we don't have any packets yet, so we don't know the starting dts for the tracks. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Add some comments explaining subtle details in writing the edit listsMartin Storsjö2014-10-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Adjust edit lists to trim out parts of tracks with negative ptsMichael Niedermayer2014-10-12
| | | | | | | | | This makes sure that audio preroll for e.g. AAC is signaled correctly. Previously we only wrote the edit list correctly if we had negative dts but started with pts == 0 (e.g. for video with B-frames). Signed-off-by: Martin Storsjö <martin@martin.st>
* smoothstreamingenc: Simplify code by removing a redundant variableMartin Storsjö2014-10-12
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Don't drop both pts and dts if timestamps are invalidMichael Niedermayer2014-10-12
| | | | | | | | | In these cases, only drop dts. Because if we drop both we have no timestamps at all for some files. This improves playback of HLS streams from GoPro cameras. Signed-off-by: Martin Storsjö <martin@martin.st>
* tcp: Add AVOption supportLuca Barbato2014-10-10
|
* tls: Support passing old-style tcp optionsLuca Barbato2014-10-10
| | | | Make tcp and tls urls near-interchangeable.
* rtsp: Add rtsps to the probeLuca Barbato2014-10-10
|
* rtsp: Support tls when in listen modeLuca Barbato2014-10-10
|
* rtsp: Support tls-encapsulated RTSPLuca Barbato2014-10-10
|
* rtsp: Check for command strings without spacesLuca Barbato2014-10-10
| | | | | | Prevent a NULL-pointer dereference. CC: libav-stable@libav.org
* sctp: Use AVERROR_BUG instead of abort()Luca Barbato2014-10-10
| | | | | | | | Trying to write to a stream id larger the the maximum requested is a programming error, still there is no reason to leave a reachable abort() in the codebase. CC: libav-stable@libav.org
* lavf: More informative error messageLuca Barbato2014-10-10
| | | | Print the timestamp values and not just the stream index.