summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avcodec: add an AVCodecContext flag to export PRFT side data on demandJames Almer2020-02-22
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: add an AVCodecContext field to signal types of packet, frame, and ↵James Almer2020-02-22
| | | | | | | | coded stream side data to export Add an initial mvs flag to is, analog to the export_mvs flags2 one. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/dashenc: always attempt to enable prft in ldash modeJames Almer2020-02-22
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/dashenc: write a capture time Producer Reference Time element when ↵James Almer2020-02-22
| | | | | | | | none is provided by the encoder This way, the element will be present in any scenario when the write_prft option is used. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/dashenc: write the styp box when the first frame of a segment is readyJames Almer2020-02-22
| | | | | | | This ensures it's written at the beginning of a segment in non streaming mode when segment duration differs from fragment duration. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/utils: Don't trigger errors for multiple id3 tags.Dale Curtis2020-02-22
| | | | | | | | | | | | Such errors may make sense for specific formats, but general parsing logic shouldn't be treating these as errors regardless of the error recognition mode. Fixes loading of the following wave when using -err_detect explode: https://cs.chromium.org/chromium/src/third_party/blink/web_tests/external/wpt/webaudio/resources/4ch-440.wav Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate/adpcm: add adpcm_ima_apm testsZane van Iperen2020-02-22
| | | | | Signed-off-by: Zane van Iperen <zane@zanevaniperen.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/segafilmenc: Remove redundant checksAndreas Rheinhardt2020-02-22
| | | | | | | | | | | | | | | | | | If an audio stream is present, the Sega FILM muxer checks for its compability with the container during init, so that the very same check needn't be repeated during writing the trailer. Essentially the same is true for the presence of a video stream: It has already been checked during init. Furthermore, after the check for the presence of a video stream succeeded, a pointer is set to point to the video stream. Yet said pointer (which was NULL before) will be derefenced anyway regardless of the result of the check. Coverity thus complained about this in CID 1434155 and removing this pointless check will also fix this issue. 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>
* avcodec/apedec: fix decoding 3800 version with 2000 compression levelPaul B Mahol2020-02-22
|
* avcodec/dxv: make prev variable unsignedPaul B Mahol2020-02-22
|
* avcodec/pcm: Fix invalid shift in AV_CODEC_ID_PCM_LXFMichael Niedermayer2020-02-21
| | | | | | | | | Fixes: left shift of 233 by 24 places cannot be represented in type 'int' Fixes: 20736/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PCM_LXF_fuzzer-4829212685107200 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>
* avcodec/cdtoons: Fix off by 4 check on diff_sizeMichael Niedermayer2020-02-21
| | | | | | | | | Fixes: out of array read Fixes: 20742/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CDTOONS_fuzzer-5738148607033344 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>
* avcodec/cdtoons: Correct several end of data checks in cdtoons_render_sprite()Michael Niedermayer2020-02-21
| | | | | | | No testcases, found by code review when debuging issue found by oss-fuzz Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/adpcm: cosmetics; reindentPaul B Mahol2020-02-21
|
* avformat: add demuxer for Rayman 2's APM formatZane van Iperen2020-02-21
| | | | | | Adds support for the APM file format used by Ubisoft's Rayman 2. Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
* avcodec: add decoder for Rayman 2's ADPCM variantZane van Iperen2020-02-21
| | | | | | Adds support for the ADPCM variant used in Rayman 2's files. Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
* avformat/spdifenc: fix TrueHD streams over 48kHzAnssi Hannula2020-02-20
| | | | | | | | Commit 36e156bef02 ("avformat/spdifenc: fix handling of large TrueHD frame") added an obviously incorrect bitshift that caused incorrect samples-per-frame calculation for TrueHD streams over 48kHz. Fix that.
* avformat/spdifenc: fix handling of large TrueHD framesAnssi Hannula2020-02-20
| | | | | | | | | | | | | | | | | | | | | The TrueHD IEC 61937 encapsulation code uses a very naive method of always inserting 24 TrueHD frames evenly in a MAT frame. This does not work for larger frames as they may exceed the size of 1/24th of a MAT frame. To fix that, use the input_timing field in the TrueHD frame to determine the proper position of the TrueHD frame in the MAT frame. That field is basically a dts field, telling the time to feed this frame to the decoder in sample count units. This can cause a TrueHD frame to be split between two MAT frames, so a second concatenation hd_buf is added, alternating with the first buffer. Large frames are preceded by smaller frames that have input_timing values that cause the frames to be sent out faster than the nominal rate (i.e. increasing decoder latency, long decoder buffer), allowing the larger frames to then be sent out slower than the nominal rate as the decoder has enough data buffered to keep it busy.
* avformat/spdifenc: make hd_buf an arrayAnssi Hannula2020-02-20
| | | | | | | | This is preparation for adding a second hd_buf in a followup commit. Also, slightly improve the comments for hd_buf_x members to clarify which ones are actually used and kept up-to-date depending on which codec is being muxed.
* avformat/vivo: set packet durationPaul B Mahol2020-02-20
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/vivo: improve probing of some filesPaul B Mahol2020-02-20
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec: add siren audio decoderPaul B Mahol2020-02-20
|
* lavd/opengl_enc: check strings before parsing them.Nicolas George2020-02-20
| | | | | Fix a segfault if OpenGL was not initialized before calling write_header().
* lavd/opengl_enc: use proper context for logging.Nicolas George2020-02-20
| | | | Log as [opengl @ 0xaddress] instead of [opengl outdev @ 0xaddress].
* avformat/wtvdec: Forward errors when reading packetAndreas Rheinhardt2020-02-19
| | | | | | | | | | | | | | | wtvfile_read_packet did not abide by the requirements of an AVIOContext's read_packet-function: If it did not read anything, it returned zero, which currently leads to a warning in read_packet_wrapper in aviobuf.c. Said warning will be an av_assert2 as soon as FF_API_OLD_AVIO_EOF_0 is zero (probably the next major version bump). So instead forward the error code from the underlying protocol. This error/assert is triggered in the wtv-demux FATE test. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavcodec/svq: Remove ff_svq1_packet_checksum()Michael Niedermayer2020-02-19
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/qdm2: Check fft_coefs_indexMichael Niedermayer2020-02-19
| | | | | | | | | Fixes: out of array access Fixes: 20660/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QDM2_fuzzer-5658290216501248 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>
* ansi: process ESC[3m italics attributePeter Ross2020-02-19
| | | | | | | squelch unknown escape code warnings Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Peter Ross <pross@xvid.org>
* lavc/qsvenc: add support for external bitrate control for HEVCLinjie Fu2020-02-18
| | | | | | | | | | Enables option for hevc_qsv encoder: -extbrc Improvements in BD-Rate could be observed with extbrc on. Signed-off-by: Linjie Fu <linjie.fu@intel.com> Signed-off-by: Zhong Li <zhongli_dev@126.com>
* lavfi/vf_scale_qsv: fix the class_name in help for scale_qsvLinjie Fu2020-02-18
| | | | | | | | | | | | | | | | Class name is used in show_help_children(avfilter_get_class(),...) to prompt the available filters. $ ffmpeg -h full Before: qsvscale AVOptions: After: scale_qsv AVOptions: Signed-off-by: Linjie Fu <linjie.fu@intel.com> Signed-off-by: Zhong Li <zhongli_dev@126.com>
* libavcodec/qsvenc.c: Set mjpeg height and width alignmentJonCookCubic2020-02-18
| | | | | | | | | | Currently width_align and height_align are zero when encoding with mjpeg_qsv, which causes "Error submitting the frame for encoding". This patch sets the alignments. There is a little bit more about the problem here http://ffmpeg.org/pipermail/ffmpeg-user/2019-November/046143.html Signed-off-by: JonCookCubic <jon.cook@cubicmotion.com> Signed-off-by: Zhong Li <zhongli_dev@126.com>
* avformat/dashenc: warn if Producer Reference Time element option is missing ↵James Almer2020-02-17
| | | | | | when ldash mode is used Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/dashenc: disable Resync elements when using DVB-DASH profileJames Almer2020-02-17
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/v4l2_m2m: Fix typo in log message and cosmeticsAndriy Gelman2020-02-16
| | | | Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
* avformat/dashenc: always set coding_dependency to 1 if a parser isn't usedJames Almer2020-02-16
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/dashenc: include an availabilityTimeComplete element in all ↵James Almer2020-02-16
| | | | | | | | | streaming modes It's not exclusive for Low Latency streaming. The muxer will serve partial segments regardless of streaming mode. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/dashenc: add Trick Mode support for AdaptationSetsJames Almer2020-02-16
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/dashenc: make AdaptationSet id an integer valueJames Almer2020-02-16
| | | | | | | Unlike Representation id, it's defined as an integer in the spec, and not as a string. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/utils: Fix integer overflow with complex time bases in ↵Michael Niedermayer2020-02-16
| | | | | | | | | | | avformat_find_stream_info() Fixes: signed integer overflow: 2045163756 * 2 cannot be represented in type 'int' Fixes: Ticket5132 Found-by: tsmith Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/avidec: Avoid integer overflow in NI switch checkMichael Niedermayer2020-02-16
| | | | | | | | | Fixes: signed integer overflow: 0 - -9223372036854775808 cannot be represented in type 'long' Fixes: Ticket8149 Found-by: Suhwan Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fftools/ffmpeg: Fix integer overflow in duration computation in seek_to_start()Michael Niedermayer2020-02-16
| | | | | | | | | Fixes: signed integer overflow: -9223372036854775808 - 9223372036854775807 cannot be represented in type 'long' Fixes: Ticket8142 Found-by: Suhwan Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_aspect: Fix integer overflow in compute_dar()Michael Niedermayer2020-02-16
| | | | | | | | | Fixes: signed integer overflow: 1562273630 * 17 cannot be represented in type 'int' Fixes: Ticket8323 Found-by: Suhwan Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/utils: avoid unsigned integer overflowsPaul B Mahol2020-02-16
|
* avcodec: fix pcm zork decoderPaul B Mahol2020-02-16
| | | | Fixes #1939
* avformat/segafilmenc: Remove AVClassAndreas Rheinhardt2020-02-15
| | | | | | | | | This muxer does not have any private options and so does not need a private class. 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>
* avformat/ftp: slightly rework file retrieval with seekingMarton Balint2020-02-15
| | | | | | | | | | | - do not require a known file size for seek to work - read the files till the actual end, do not limit data at the queried file size - fix a bug which causes reading 0 byte files for non-existing files - properly check the return status of the FTP server at the end of the file retrieval Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/ftp: do not break protocol on username or password with newlinesMarton Balint2020-02-15
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/ftp: add support for escaped credentialsMarton Balint2020-02-15
| | | | | | Properly fixes ticket #7816. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/httpauth: do not decode plus sign to space in credentialsMarton Balint2020-02-15
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/urldecode: add the ability to not decode plus sign to spaceMarton Balint2020-02-15
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>