summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* avformat/dashenc: fix min_seg_duration option sizeJames Cowgill2017-11-19
| | | | | | | | | | In the DASHContext structure, min_seg_duration is declared as an int, but the AVOption list claimed it was an INT64. Change the option list to use the correct size, which should fix some initialization errors seen on big-endian platforms. Signed-off-by: James Cowgill <jcowgill@debian.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat: remove unnecessary AVStreamParseType enum offsetJames Almer2017-11-18
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/tcp: Fix the type of the optlen argument to getsockopt().Carl Eugen Hoyos2017-11-18
| | | | | Fixes a warning on aix: libavformat/tcp.c:283:58: warning: passing argument 5 of 'getsockopt' from incompatible pointer type
* lavf/mov: don't read outside frag_index boundsJohn Stebbins2017-11-18
| | | | | | | | | | | Potentially fixes: https://bugs.chromium.org/p/chromium/issues/detail?id=786269#c1 In theory, the crash can be triggered by an invalid stream that has either tfdt or trun outside of the moof Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Fix leak of frame_duration_buffer in mov_fix_index().Dale Curtis2017-11-18
| | | | | | | | | Should be unconditionally freed at the end of mov_fix_index() in case it hasn't been used during the fix up. Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Reviewed-by: Sasi Inguva <isasi-at-google.com@ffmpeg.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/tcp: add option to enable TCP_NODELAYAman Gupta2017-11-17
| | | | | | | | This can reduce latency and increase throughput, particularly on high latency networks. Signed-off-by: Aman Gupta <aman@tmm1.net> Reviewed-by: Jeyapal, Karthick <kjeyapal@akamai.com>
* lavf/mxf: Support 60fps output.Carl Eugen Hoyos2017-11-16
|
* avformat/mov: Check size of STSC allocationFredrik Hubinette2017-11-16
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/movenc: allow writing avc3 sample entry typeJohn Stebbins2017-11-16
| | | | | | | The avc3 sample entry type is useful for adaptive streaming. It permits parameter sets to be written inline in the video stream. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/utils: remove usage of AVCodecContext accessorsJames Almer2017-11-15
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/mov.c: Don't correct edit list start to zero, when we can't find a ↵Sasi Inguva2017-11-14
| | | | | | | | | frame before edit list start. After c2a8f0fcbe57ea9ccaa864130f078af10516c3c1 this can happen on normal edit lists starting on a B-frame. Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/http: fix chunked response w/ multiple_requests=1Aman Gupta2017-11-14
| | | | | | | | | | | | Currently if you use the multiple_requests=1 option and try to receive a chunked-encoded response, http_buf_read() will hang forever. After this patch, EOF is emulated once a 0-byte final chunk is received by setting a new flag. This flag is reset in ff_http_do_new_request(), which is used to make additional requests on the open socket. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Aman Gupta <aman@tmm1.net>
* avformat/hlsenc: write fmp4 init header after first AV frameSteven Liu2017-11-14
| | | | | | | fix ticket id: 6825 Signed-off-by: Steven Liu <lq@onvideo.cn> Tested-by: Aman Gupta <aman@tmm1.net>
* This fixes a deadlock while reading a chunked https response, ifAman Gupta2017-11-13
| | | | | | | | | | | | | | multiple_requests=1 is also set. Without an EOF to signal the end of the last chunk, tls_read gets stuck forever trying to read more data than is available. This occurs with the http protocol reproducibly, because http.c always reads 4kb at a time, and the last chunk of an http response is often much smaller. After this commit, tls_read always returns any buffered plaintext first before attempting to read more encrypted data off the underlying tcp socket. Signed-off-by: Rodger Combs <rodger.combs@gmail.com>
* lavf/tls_securetransport: handle incomplete reads gracefullyRodger Combs2017-11-13
| | | | Signed-off-by: Aman Gupta <aman at tmm1.net>
* movenc-test: fix potential uninitialized readTimo Rothenpieler2017-11-13
| | | | Fixes CID #1413023
* avformat/fitsenc: validate input pixel formatTimo Rothenpieler2017-11-13
| | | | Fixes CID #1416961 and #1416962
* avformat/http: fix stray quote in trace loggingAman Gupta2017-11-13
| | | | | Signed-off-by: Aman Gupta <aman@tmm1.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/img2enc: add frame_pts option for make output filenameSteven Liu2017-11-13
| | | | | | | | fix ticket id: #1452 when use frame_pts option, the output image name can be set with PTS of current frame. Signed-off-by: Steven Liu <lq@onvideo.cn>
* avformat/hlsenc: allocate space for terminating nullTimo Rothenpieler2017-11-13
| | | | Fixes CID #1420394
* lavf/tls_securetransport: build on iOSAman Gupta2017-11-12
| | | | | | | This works as expected on iOS, except for the ca_file feature which is disabled because SecItemImport is not available. Signed-off-by: Aman Gupta <aman@tmm1.net>
* avformat/ty: check cur_chunk_pos before using itPaul B Mahol2017-11-12
| | | | | | Fixes #6831. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/ty: fix memory leaksPaul B Mahol2017-11-12
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/ty: check if header is correctly parsed and is still presentPaul B Mahol2017-11-12
| | | | | | Fixes #6829. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavf/dashdec: Fix several memleaks.Carl Eugen Hoyos2017-11-12
|
* Revert "lavf/dashdec: Fix several memleaks."Steven Liu2017-11-12
| | | | This reverts commit e7fe5e511aaeb3b8d949706b7f8620042cdfbd6c.
* Merge commit '55fe72a841ba306370e68e86c88f34b4456aa4dd'James Almer2017-11-12
|\ | | | | | | | | | | | | * commit '55fe72a841ba306370e68e86c88f34b4456aa4dd': matroskadec: don't warn about unknown spherical medata when none is present Merged-by: James Almer <jamrial@gmail.com>
| * matroskadec: don't warn about unknown spherical medata when none is presentJames Almer2017-11-03
| | | | | | | | | | | | | | | | | | | | | | track->video.projection.type is set to 0 (a Matroska specific "No spherical metadata present" value, with no related AVSphericalMapping) by default on files without the element. This removes bogus warnings on every single matroska file without Spherical metadata. Signed-off-by: James Almer <jamrial@gmail.com>
| * dashenc: copy stream frame rate to output streamPeter Große2017-10-27
| | | | | | | | | | | | | | | | Leads to setting of DefaultDuration in Matroska muxer based on frame rate instead of timebase. Fixes playback in Chrome. Signed-off-by: Peter Große <pegro@friiks.de> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '4723c6226aa1ece4099338cc9b38a9cef4fa4846'James Almer2017-11-12
|\| | | | | | | | | | | | | * commit '4723c6226aa1ece4099338cc9b38a9cef4fa4846': dashenc: fix bitrate estimation with correct scaling Merged-by: James Almer <jamrial@gmail.com>
| * dashenc: fix bitrate estimation with correct scalingAnton Schubert2017-10-27
| | | | | | | | | | Signed-off-by: Anton Schubert <ischluff@mailbox.org> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * http: Reset compressed header flag when starting to read a requestJacek Jendrzej2017-09-26
| | | | | | | | | | | | | | This fixes redirects, where the original redirect response indicated support for compression, while the actual redirected content didn't. Signed-off-by: Martin Storsjö <martin@martin.st>
| * smacker: fix integer overflow with pts_incMichael Niedermayer2017-09-24
| | | | | | | | | | | | | | Bug-Id: 1073 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Sean McGovern <gseanmcg@gmail.com>
| * smacker: return meaningful error codes on failureSean McGovern2017-09-24
| |
| * avio: update avio_alloc_context() doxyJames Almer2017-09-14
| | | | | | | | | | | | | | | | It must be freed using avio_context_free() starting with commit 99684f3ae752fc8bfb44a2dd1482f8d7a3d8536d. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * flvdec: Check the avio_seek return value after reading a metadata packetMartin Storsjö2017-09-04
| | | | | | | | | | | | | | | | | | | | | | | | If the metadata packet is corrupted, flv_read_metabody can accidentally read past the start of the next packet. If the start of the next packet had been flushed out of the IO buffer, we would be unable to seek to the right position (on a nonseekable stream). Prefer to clearly error out instead of silently trying to read from a desynced stream which will only be interpreted as garbage. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'e41daa62465036ad36ad0bd14e4936e848d7f07e'James Almer2017-11-11
|\| | | | | | | | | | | | | * commit 'e41daa62465036ad36ad0bd14e4936e848d7f07e': Remove support for building for mingw32ce (Windows CE) Merged-by: James Almer <jamrial@gmail.com>
| * Remove support for building for mingw32ce (Windows CE)Martin Storsjö2017-08-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The toolchain for this target is unmaintained since many years. While it has been continuously build tested on fate, it hasn't actually been tested at runtime since many, many years (and back then, only a few codecs in libavcodec were tested). So far, keeping support for it has been mostly effortless, but the compiler does seem to have issues with dllimported data symbols, ending up as internal compiler errors in some cases. Instead of jumping through further hoops to work around that, just remove the target. Signed-off-by: Martin Storsjö <martin@martin.st>
| * lavf: make avio_read_partial() publicwm42017-08-30
| | | | | | | | | | | | | | Main use-case is proxying avio through a foreign I/O layer and a custom AVIO context, without losing latency and performance characteristics. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * hevc: Improve stream constraint values in common headerMark Thompson2017-08-05
| | | | | | | | | | | | | | | | Add comments to describe the sources of the constraint values expressed here, and add some more related values which will be used in following patches. Fix the incorrect values for SPS and PPS count (they are not the same as those used for H.264), and remove HEVC_MAX_CU_SIZE because it is not used anywhere.
* | lavf/mov.c: Parse upto 2 keyframes after the edit list end in mov_fix_index.Sasi Inguva2017-11-11
| | | | | | | | | | | | Partially fixes t/6699. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/utils: Look at the first 3 frames if timestamps indicate frame ↵Michael Niedermayer2017-11-11
| | | | | | | | | | | | | | | | reorder but decoder delay does not Fixes: Ticket6487 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/utils: preserve AV_PKT_FLAG_DISCARD in parse_packetJohn Stebbins2017-11-11
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'defe307fb22beca60a632e976ab97e5edd4aee25'James Almer2017-11-11
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'defe307fb22beca60a632e976ab97e5edd4aee25': mov: move stsd finalization to an appropriate place mov: Do not set stsd_count if mov_read_stsd() fails mov: log and return early on non-positive stsd entry counts See 8b43ee4054af799e388d380b379a13a60849c1b5 656feb641de3cd5b9cb4e33ffd3f0ad4664c36d2 Merged-by: James Almer <jamrial@gmail.com>
| * mov: move stsd finalization to an appropriate placeSean McGovern2017-07-31
| | | | | | | | | | | | | | | | | | | | | | mov_finalize_stsd_codec() parses stream information from the ALAC extradata, so run it after the extradata processing is completed in mov_read_stsd(). Fixes playback of 96kHz ALAC streams muxed by qaac or the reference alac encoder. Adapted from an FFmpeg patch by Hendrik Leppkes <h.leppkes@gmail.com> Bug-Id: 1072
| * mov: Do not set stsd_count if mov_read_stsd() failsSean McGovern2017-07-31
| | | | | | | | Based on an FFmpeg patch by Michael Niedermayer <michael@niedermayer.cc>
| * mov: log and return early on non-positive stsd entry countsSean McGovern2017-07-30
| | | | | | | | Based on an FFmpeg patch by Michael Niedermayer <michael@niedermayer.cc>
| * rmdec: add missing brackets to compound statementSean McGovern2017-07-25
| | | | | | | | Accidentally left out of 95ce02b35d3d1bb16111031df1d82a6e4d894d36.
| * lavf: allow avformat_close_input() with NULLwm42017-07-22
| | | | | | | | | | | | This is consistent with how other destructors behave. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * caf: add an Opus tagAnton Khirnov2017-07-22
| | | | | | | | CC: libav-stable@libav.org