Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-14avcodec/mpeg12dec: remove outdated commentsMichael Niedermayer
Found-by: Kieran Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 48de8f5816aa54dc584aeb2dbbf63a0e880279e2) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-06-08avcodec/mpeg12dec: Fix got_outputMichael Niedermayer
This makes got_output consistent with the code in slice_end() which sets the output in slice_end() if (s->pict_type == AV_PICTURE_TYPE_B || s->low_delay) { int ret = av_frame_ref(pict, s->current_picture_ptr->f); ... } else { Fixes: assertion failure Fixes: 22178/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG1VIDEO_fuzzer-5664234440753152 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-04-26lavc: Rename hwaccel.h to hwconfig.hMark Thompson
This already applied to decoders as well as hwaccels, and adding encoder support was going to make the name even more inaccurate.
2020-03-20avcodec/mpeg12dec: Add CPB coded side dataNicolas Gaullier
This fixes mpeg2video stream copies to mpeg muxer like this: ffmpeg -i xdcamhd.mxf -c:v copy output.mpg Signed-off-by: Anton Khirnov <anton@khirnov.net>
2020-03-20avcodec/mpeg12dec: Do not alter avctx->rc_buffer_sizeNicolas Gaullier
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2020-03-12avcodec/mpeg12dec: Fix invalid shift in mpeg2_fast_decode_block_intra()Michael Niedermayer
Fixes: left shift of negative value -695 Fixes: 19232/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG1VIDEO_fuzzer-5702856963522560 Fixes: 19555/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG1VIDEO_fuzzer-5741218147598336 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-01-02avcodec/mpeg12dec: always submit the first field to hwaccelZhong Li
Though this patch to fix ticket #6668, I belive it is unnecessary to set SLICE_FLAG_ALLOW_FIELD flag to other hwaccels(dxva, vdpau, etc). Please also refer the orginal comment of 9cb150c9ab520eba5636bbcf925db6a70e67f3e5 Should also fix ticket #8442. Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
2019-09-26avcodec/mpeg12dec: Sanitize start codes earlierAndreas Rheinhardt
The MPEG-1/2 decoder uses avpriv_find_start_code to search for start codes and worked with the resulting start code before checking that it is really a start code of a slice. In particular, if the picture is so big that a slice_vertical_position_extension is present, it added the slice_vertical_position_extension as if it had a slice. Then a left shift is performed, without making sure that the value to be shifted is nonnegative. Afterwards the end result is checked, but even if a start code of a non-slice has been found, it might pass these checks: If slice_vertical_position_extension is present a start code < SLICE_MIN_START_CODE can lead to a macroblock-row index that appears valid. Furthermore, the left shift might make an invalid start code appear valid by discarding the highest bit. This has been fixed by checking directly after avpriv_find_start_code has returned. Fixes ticket #8162 (which is about the undefined left shifts). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2019-09-24libavcodec/mpeg12dec: Check input for minimal frame sizeMichael Niedermayer
Fixes: Timeout (35sec -> 6sec) Fixes: 16901/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEGVIDEO_fuzzer-5729024726269952 Fixes: 16901/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEGVIDEO_fuzzer-5642388592132096 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-04-02mpeg4video: Add support for MPEG-4 Simple Studio Profile.Kieran Kunhya
This is a profile supporting > 8-bit video and has a higher quality DCT
2018-02-11avcodec/mpeg2dec: Fix field selection for skipped macroblocksNekopanda
For B field pictures, the spec says, > The prediction shall be made from the field of the same parity as the field being predicted. I did it. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-01-22avcodec/mpeg12dec: fix preprocessor check for mpeg1_nvdec hwaccelJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2017-11-27lavc: Add hardware config metadata for decoders supporting hardware outputMark Thompson
This includes a pointer to the associated hwaccel for decoders using hwaccels - these will be used later to implement the hwaccel setup without needing a global list. Also added is a new file listing all hwaccels as external declarations - this will be used later to generate the hwaccel list at configure time.
2017-11-20avcodec: Implement mpeg1 nvdec hwaccelPhilip Langdale
Once I remembered that there's a separate decoder type for mpeg1, even though params struct is shared with mpeg2, everything worked.
2017-11-18avcodec: Implement mpeg2 nvdec hwaccelPhilip Langdale
This is mostly straight-forward. The weird part is that it should just work for mpeg1, but I see corruption in my test cases, so I'm going to try and fix that separately.
2017-11-16avcodec/mpeg12dec: ensure a53_caption_size is reset on malloc failuresAman Gupta
Signed-off-by: Aman Gupta <aman@tmm1.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
2017-11-16avcodec/mpeg12dec: parse A53 caption data embedded in SCTE-20 user dataAman Gupta
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-10-24Merge commit 'dd343fd986459f467a2d1d70c26101dff1d47d68'James Almer
* commit 'dd343fd986459f467a2d1d70c26101dff1d47d68': lavu: Drop deprecated VDPAU pixel formats Merged-by: James Almer <jamrial@gmail.com>
2017-10-23Merge commit '5182a28b5de060c51c21b36053ab205bfbbbbe31'James Almer
* commit '5182a28b5de060c51c21b36053ab205bfbbbbe31': lavc: Drop deprecated global afd field Merged-by: James Almer <jamrial@gmail.com>
2017-10-23Merge commit 'dcc39ee10e82833ce24aa57926c00ffeb1948198'James Almer
* commit 'dcc39ee10e82833ce24aa57926c00ffeb1948198': lavc: Remove deprecated XvMC support hacks Merged-by: James Almer <jamrial@gmail.com>
2017-10-12Fix visual glitch with XvMC, caused by wrong idct permutation.Ivan Kalvachev
In the past XvMC forced simple_idct since it was using FF_IDCT_PERM_NONE. However now we have SIMD variants of simple_idct that are using FF_IDCT_PERM_TRANSPOSE and if they are selected XvMC would get coefficients in the wrong order. The patch creates new FF_IDCT_NONE that is used only for this kind of hardware decoding and that fallbacks to the old C only simple idct. Signed-off-by: Ivan Kalvachev <ikalvachev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-06-27dxva: add support for new dxva2 and d3d11 hwaccel APIswm4
This also adds support to avconv (which is trivial due to the new hwaccel API being generic enough). The new decoder setup code in dxva2.c is significantly based on work by Steve Lhomme <robux4@gmail.com>, but with heavy changes/rewrites. Merges Libav commit f9e7a2f95a7194a8736cc1416a03a1a0155a3e9f. Also adds untested VP9 support. The check for DXVA2 COBJs is removed. Just update your MinGW to something newer than a 5 year old release. Signed-off-by: Diego Biurrun <diego@biurrun.de>
2017-06-19avcodec: Rename ff_mpv_decode_mb() to ff_mpv_reconstruct_mbMichael Niedermayer
The new name more accuratly describes what the function does Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-05-11avcodec/mpeg12dec: Fixes runtime error: division by zeroMichael Niedermayer
Fixes: 1464/clusterfuzz-testcase-minimized-4925445571084288 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-23lavc: Drop deprecated global afd fieldVittorio Giovara
Deprecated in 08/2014.
2017-03-23lavc: Remove deprecated XvMC support hacksDiego Biurrun
Deprecated in 11/2013.
2017-03-13avcodec/mpeg12dec: Fix runtime error: left shift of negative value -1Michael Niedermayer
Fixes: 764/clusterfuzz-testcase-6273034652483584 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-04avcodec/mpeg12dec: Fix runtime error: left shift of negative value -13Michael Niedermayer
Fixes: 709/clusterfuzz-testcase-4789836449841152 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-02-26avcodec/mpeg12dec: Fix runtime error: left shift of negative value -2Michael Niedermayer
671/clusterfuzz-testcase-4990381827555328 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-02-19avcodec/mpeg12dec: Fix runtime error: left shift of negative valueMichael Niedermayer
Fixes: 608/clusterfuzz-testcase-603978286392934 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-02-19avcodec/mpeg12dec: Provide debug level log on skiped P/B framesMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-19mpeg12dec: move setting first_field to mpeg_field_start()Anton Khirnov
For field picture, the first_field is set based on its previous value. Before this commit, first_field is set when reading the picture coding extension. However, in corrupted files there may be multiple picture coding extension headers, so the final value of first_field that is actually used during decoding can be wrong. That can lead to various undefined behaviour, like predicting from a non-existing field. Fix this problem, by setting first_field in mpeg_field_start(), which should be called exactly once per field. CC: libav-stable@libav.org Bug-ID: 999
2016-12-19mpeg12dec: avoid signed overflow in bitrate calculationAnton Khirnov
CC: libav-stable@libav.org Bug-Id: 981 Found-By: Agostino Sarubbo
2016-12-10avcodec/mpeg12dec: Add FF_CODEC_CAP_SKIP_FRAME_FILL_PARAMMichael Niedermayer
This decreases the amount of computations and memory needed for analysing mpeg1/2 streams the properties update is moved from code that is skiped if skip_frame is set to code that is not skiped so the change doesnt loose that from being executed Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-10-21mpeg12dec: unref discarded picture from extradataAndreas Cadhalpun
Otherwise another frame gets referenced into picture, triggering an assert (from commit 13aae8) in av_frame_ref. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-10-09lavc: fix typosMoritz Barsnick
Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-09-13avcodec/mpeg12dec: add comments documenting the format of the DVD CC ↵Jonathan Campbell
user-data packet. this is to aid development and maintenance of that code. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-22lavc/get_bits: add a logging context to check_marker()Clément Bœsch
Based on d338abb664febbc2c7266af7818aab1f12dbc161
2016-06-21Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'Clément Bœsch
* commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb': cosmetics: Fix spelling mistakes Merged-by: Clément Bœsch <u@pkh.me>
2016-05-04cosmetics: Fix spelling mistakesVittorio Giovara
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2016-05-01avcodec/mpeg12dec: Print position in end mismatch errorMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-01avcodec/mpeg12dec: Do not choke on extra m704 alpha dataMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-03-19lavu: deprecate AV_PIX_FMT_VAAPI_*, replace with AV_PIX_FMT_VAAPIMark Thompson
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2016-02-24avcodec/mpeg12dec: Fix missing slice handling without paddingMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-16avcodec/mpeg12: Remove duplicate block_last_index setting codeMichael Niedermayer
Based on 7c25ffe070c286874a8c3513f7504b90e1626b0c and 58dd885f9ae7feee002773253e345e11e7142739 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-02-16Merge commit '7c25ffe070c286874a8c3513f7504b90e1626b0c'Derek Buitenhuis
* commit '7c25ffe070c286874a8c3513f7504b90e1626b0c': mpeg1: Make intra-block decoding independent of MpegEncContext Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-16Merge commit '249827f736db4c94dfcb24a3883aa4c04f9b119b'Derek Buitenhuis
* commit '249827f736db4c94dfcb24a3883aa4c04f9b119b': mpeg12dec: Refactor mpeg1_decode_block_intra() Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-16Merge commit 'cdbaa436042ba59c3b2bd7e9652e9a14136fd604'Derek Buitenhuis
* commit 'cdbaa436042ba59c3b2bd7e9652e9a14136fd604': mpeg12dec: Always close reader on error Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-09mpeg1: Make intra-block decoding independent of MpegEncContextVittorio Giovara
This allows untangling the eatqi decoder from the MPEG-1 decoder. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
2016-02-09mpeg12dec: Refactor mpeg1_decode_block_intra()Diego Biurrun
Reduce variable scope, improve variable name, drop pointless ff_dlog(), merge variable declaration and initialization, whitespace cosmetics.