summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* avformat/asfdec_f: Fix overflow check in get_tag()Michael Niedermayer2020-03-21
| | | | | | | | | Fixes: signed integer overflow: 2 * 1210064928 cannot be represented in type 'int' Fixes: 20873/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5761116909338624 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/subviewerdec: Support higher sub-second precision.Carl Eugen Hoyos2020-03-21
| | | | Fixes ticket #8575.
* avformat/bink: properly mark packets that are key framesPaul B Mahol2020-03-20
|
* avformat/utils: Make find_stream_info get side data from codec contextNicolas Gaullier2020-03-20
| | | | | | This will allow probing input coded side data, and also forwarding them to the output. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avformat/yuv4mpegdec: add support for 444alphaPaul B Mahol2020-03-19
|
* avformat/yuv4mpegdec: use proper error codesPaul B Mahol2020-03-19
|
* avformat/xwma: return always proper error codesPaul B Mahol2020-03-19
|
* avformat/nsvdec: Fix memleaks on errors while reading the headerMichael Niedermayer2020-03-19
| | | | | | | | | Fixes: memleaks Fixes: 21084/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5655975492321280 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* remove CHAR_MIN/CHAR_MAX usagePaul B Mahol2020-03-17
| | | | It is not needed at all.
* avformat: add hca demuxerPaul B Mahol2020-03-17
|
* avformat: add derf demuxerPaul B Mahol2020-03-17
|
* avformat: add fwse demuxerPaul B Mahol2020-03-17
|
* avformat/webmdashenc: Remove write_trailerAndreas Rheinhardt2020-03-15
| | | | | | | | | It doesn't do anything: All allocated blocks have already been freed in write_header. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mxfenc: allow all frame rates if -strict mode is set to unofficial ↵Marton Balint2020-03-14
| | | | | | | | | | or lower There was no consensus wheter or not to allow unofficial frame rates due to possible interoperability issues, a compromise is to only allow it if -strict mode is set to unofficial. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfenc: factorize timecode checking and settingMarton Balint2020-03-14
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfenc: add some missing content package ratesMarton Balint2020-03-14
| | | | | | Fixes ticket #8523. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfenc: move content package rates and timebase combinations to a ↵Marton Balint2020-03-14
| | | | | | separate struct Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxf: get rid of samples per frame array usageMarton Balint2020-03-14
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/audiointerleave: disallow using a samples_per_frame arrayMarton Balint2020-03-14
| | | | | | | Only MXF used an actual sample array, and that is unneeded there because simple rounding rules can be used instead. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/smoothstreaming: Fix memleaks on errorsAndreas Rheinhardt2020-03-14
| | | | | | | | | | | | | | If an AVFormatContext could be allocated, but white-/blacklists couldn't be copied, the AVFormatContext would leak as it was only accessible through a local variable that goes out of scope when one goes to fail. Furthermore, in case writing a header of a submuxer failed, the options used for said call could leak. Both of these memleaks have been fixed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/matroskaenc: Check BlockAdditional size before useAndreas Rheinhardt2020-03-14
| | | | | | | | Don't read a 64bit number before having checked that the data is at least 8 bytes long. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/avienc: Use AV_STRINGIFY for compile time constantAndreas Rheinhardt2020-03-14
| | | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/nutenc: Drop redundant freesAndreas Rheinhardt2020-03-14
| | | | | | | | Should writing the header fail, the allocations already performed will be freed during deinit so remove the frees in nut_write_header(). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mux: Unify setting number of muxed packetsAndreas Rheinhardt2020-03-14
| | | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mux: Remove redundant checks for write errorsAndreas Rheinhardt2020-03-14
| | | | | | | | | | | | | | | If writing a packet didn't directly return an error, the AVIOContext's error flag is checked for errors (if existing) by write_packet(). And if write_packet() didn't indicate an error, its callers checked the error flag of the AVIOContext (if existing). The latter check is redundant. The reason for checking twice lies in the FFmpeg-Libav split: The check in write_packet() has been added in 9ad1e0c1 in Libav. FFmpeg already had the other checks (since aec9390a), but when 9ad1e0c1 was merged (in 1f1c1008), no one noticed the redundant checks. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Reorder fields in MXFIndexEntry to make it smallerAndreas Rheinhardt2020-03-14
| | | | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/tty: Reduce probe score to fix ffmetadata auto-detection.Carl Eugen Hoyos2020-03-14
| | | | Fixes ticket #8568.
* avformat/avidec: recognize H265 fourcc as hevcPaul B Mahol2020-03-12
| | | | Fixes decoding of came2_2020-01-13__20-38-58_21-00-00__Chn2.avi
* avformat/vpk: add seeking supportPaul B Mahol2020-03-12
|
* avformat/hlsenc: set the options when open the key info filesSteven Liu2020-03-12
| | | | | | make the options same as segments for the http put method Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
* avformat/hlsenc: Fix initial setting for start_ptsHongcheng Zhong2020-03-12
| | | | | | | | | | | This patch fixes Bug #8469 If x264 baseline profile is used with other profiles, start_pts will be initialized to audio stream's first pts, while the duration is calculated based on video stream's pts. In this patch the start_pts is initialized with the correct stream's first pts. Signed-off-by: Hongcheng Zhong <sj.hc_Zhong@sjtu.edu.cn> Reviewed-by: Steven Liu <liuqi05@kuaishou.com>
* avcodec/wavpack: add support for DSD filesDavid Bryant2020-03-11
| | | | | | | | | | | | | | | | | Add support for WavPack DSD files to the existing WavPack decoder using avcodec/dsd to perform the 8:1 decimation to 32-bit float samples. We must serialize the dsd2pcm operation (cross-boundary filtering) but would like to use frame-level multithreading for the CPU-intensive DSD decompression, and this is accomplished with ff_thread_report/await_progress(). Because the dsd2pcm operation is independent across channels we use slice-based multithreading for that part. Also a few things were removed from the existing WavPack decoder that weren't being used (primarily the SavedContext stuff) and the WavPack demuxer was enhanced to correctly determine the sampling rate of DSD files (and of course to no longer reject them). Signed-off-by: David Bryant <david@wavpack.com>
* avformat/movenc: add ICC profile support to colr atomvectronic2020-03-10
| | | | | | | | | | | If 'write_colr' movflag is set, then movflag 'prefer_icc' can be used to first look for an AV_PKT_DATA_ICC_PROFILE entry to encode. If ICC profile doesn't exist, default behaviour enabled by 'write_colr' occurs. Signed-off-by: vectronic <hello.vectronic@gmail.com>
* avformat/mov: whitespace indentvectronic2020-03-10
| | | | Signed-off-by: vectronic <hello.vectronic@gmail.com>
* avformat/mov: add ICC profile support for colr atomvectronic2020-03-10
| | | | Signed-off-by: vectronic <hello.vectronic@gmail.com>
* API: add AV_PKT_DATA_ICC_PROFILE to AVPacketSideDataTypevectronic2020-03-10
| | | | Signed-off-by: vectronic <hello.vectronic@gmail.com>
* avformat/libzmq: Make default pkt_size value consistent with amqpAndriy Gelman2020-03-09
| | | | | Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat: Add AMQP version 0-9-1 protocol supportAndriy Gelman2020-03-09
| | | | | | | Supports connecting to a RabbitMQ broker via AMQP version 0-9-1. Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/alp: tweak probe function to return MAX-1Zane van Iperen2020-03-09
| | | | Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
* avformat: add demuxer for LEGO Racers' ALP formatZane van Iperen2020-03-09
| | | | | | Signed-off-by: Zane van Iperen <zane@zanevaniperen.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/udp: support w32pthreads compatphunkyfish2020-03-08
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* lavf/dashdec: add 3GPP TS26.247 probe in dash demuxerJun Zhao2020-03-05
| | | | | | | Enabled the 3GP-DASH Release-10/Relase-11(3GPP TS26.247) profile to dash demuxer probe. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavf/dashdec: Add ts to the list of allowed extensions.Jun Zhao2020-03-05
| | | | | | | | Dashdec can able to handle MPEG-2 TS streams by default as well, used MP4Box to create the segmented MPEG-2 TS files for verification. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avformat/segment: Don't set extradata size twiceAndreas Rheinhardt2020-03-02
| | | | | | | | | ff_alloc_extradata() already sets the size of the extradata so doing it again is unnecessary. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Gyan Doshi <ffmpeg@gyani.pro> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: use a zero based continuity counterMarton Balint2020-03-02
| | | | | | | | | | The standard does not seem to require the counter to be zero based, but some checker tools (MyriadBits MXFInspect, Interra Baton) have validations against 0 start... Fixes ticket #6781. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mp3dec: Count last partial frame in probe.Michael Niedermayer2020-02-28
| | | | | | | | Fixes: regression Fixes: Ticket8511 Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/ivfenc: Don't use size_t for size of fileAndreas Rheinhardt2020-02-28
| | | | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavformat/avienc: Check bits per sample for PAL8Michael Niedermayer2020-02-27
| | | | | | | Fixes: assertion failure Fixes: Ticket 8172 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mpegts: Improve the position determination for ↵Michael Niedermayer2020-02-27
| | | | | | | | | avpriv_mpegts_parse_packet() Fixes: assertion failure Fixes: Ticket 8005 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/dashenc: use a quieter log lever when informing prft was ↵James Almer2020-02-26
| | | | | | | automatically enabled Suggested-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: James Almer <jamrial@gmail.com>