summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
...
* assdec: check av_new_packet return valueVittorio Giovara2014-10-29
| | | | | CC: libav-stable@libav.org Bug-Id: CID 703626
* mtv: improve header check and avoid division by zeroVittorio Giovara2014-10-29
| | | | | CC: libav-stable@libav.org Bug-Id: CID 732203 / CID 732204
* oggenc: remove unneeded null checkMichael Niedermayer2014-10-29
| | | | | | | The code would have segfaulted before if oggstream were NULL. CC: libav-stable@libav.org Bug-Id: CID 732218
* mxfdec: reduce loop bound in mxf_read_pixel_layout()Tomas Härdin2014-10-27
| | | | | | Makes coverity less confused and code more readable. Bug-Id: CID 732262
* bethsoftvid: check return value and clean memoryVittorio Giovara2014-10-27
| | | | | CC: libav-stable@libav.org Bug-Id: CID 733777
* filmstripdec: avoid integer overflowVittorio Giovara2014-10-27
| | | | | CC: libav-stable@libav.org Bug-Id: CID 732246
* matroskaenc: write correct Display{Width, Height} in stereo encodingVittorio Giovara2014-10-27
| | | | | | | | | | | | | should be the raw amount of pixels (for example 3840x1080 for full HD side by side) and the DisplayWidth/Height in pixels should be the amount of pixels for one plane (1920x1080 for that full HD stream)." So, move the aspect ratio check in the mkv_write_stereo_mode() function and always write the embl when stereo format and/or aspect ration is set. Also add a few comments to that function. CC: libav-stable@libav.org Found-by: Asan Usipov <asan.usipov@gmail.com>
* lavf: Implement ff_brktimegm using gmtime_rMartin Storsjö2014-10-26
| | | | | | | While a standalone implementation is nice, we already depend on gmtime and gmtime_r in a number of places. Signed-off-by: Martin Storsjö <martin@martin.st>
* Use gmtime_r instead of gmtime and localtime_r instead of localtimeMartin Storsjö2014-10-26
| | | | | | | | | | | gmtime isn't thread safe in general. In msvcrt (which lacks gmtime_r), the buffer used by gmtime is thread specific though. One call to localtime is left in avconv_opt.c, where thread safety shouldn't matter (instead of making avconv depend on the libavutil internal header). Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Check the return value of strftimeMartin Storsjö2014-10-26
| | | | | | | | If the buffer provided to strftime is too small, the buffer contents are indeterminate - it does not guarantee actually null terminating the buffer. Signed-off-by: Martin Storsjö <martin@martin.st>
* wtv: Avoid needlessly calling gmtime twice with the same argumentMartin Storsjö2014-10-26
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: fix assigment checkVittorio Giovara2014-10-24
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1197050
* mxfenc: Fix possible integer overflowsTomas Härdin2014-10-24
| | | | | | | | | None of these are likely unless the user is writing a file with two billion streams or a duration of around two months. CC: libav-stable@libav.org Bug-Id: CID 700568 / CID 700569 / CID 700570 / CID 700571 / CID 700572 / CID 700573
* mxfdec: add missing breakVittorio Giovara2014-10-24
| | | | | CC: libav-stable@libav.org Bug-Id: CID 732232
* matroskaenc: check avio_open_dyn_buf return valueVittorio Giovara2014-10-24
| | | | | CC: libav-stable@libav.org Bug-Id: CID 703629
* matroskadec: check return valuesVittorio Giovara2014-10-24
| | | | | CC: libav-stable@libav.org Bug-Id: CID 733712
* matroskadec: fix leak on errorVittorio Giovara2014-10-24
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1026767
* lavf: replace rename() with ff_rename()Luca Barbato2014-10-24
| | | | | | | | | The new function wraps errno so that its value is correctly reported when other functions overwrite it (eg. in case of logging). CC: libav-stable@libav.org Bug-Id: CID 1135748 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* flac_picture: prevent a possible out of bound writeVittorio Giovara2014-10-24
| | | | | | | | At "mimetype[len] = 0;" mimetype is a 64 element array and len might be equal to or greater than that. CC: libav-stable@libav.org Bug-Id: CID 1061055
* img2dec: check av_new_packet return valueVittorio Giovara2014-10-24
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1087077
* audiointerleave: check av_new_packet return valueVittorio Giovara2014-10-24
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1087078
* mp3enc: write full LAME frameAnton Khirnov2014-10-24
| | | | Most importantly, it contains the encoder delay and replaygain info.
* mp3dec: fix reading the Xing tagAnton Khirnov2014-10-24
| | | | | | | The quality scale field is only supposed to be present if the fourth bit is set. In practice, lame always sets it, but other tools might not. CC:libav-stable@libav.org
* lavf: Use av_gettime_relativeMartin Storsjö2014-10-24
| | | | | | | | | The ones left using av_gettime are NTP timestamps (for RTCP, which is specified to send the actual current realtime clock in RTCP SR packets), and the NUT muxer timestamper, which is documented as using wallclock time. Signed-off-by: Martin Storsjö <martin@martin.st>
* 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>