summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* | avcodec/smc: Check input packet sizeMichael Niedermayer2018-02-24
| | | | | | | | | | | | | | | | Fixes: Timeout Fixes: 6261/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMC_fuzzer-5811309653262336 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/Makefile: add missing dependencies for some cuvid decodersJames Almer2018-02-23
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | Parse and drop gain control data, so that SSR packets decode.Dale Curtis2018-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This will result in poor quality audio for SSR streams, but they will at least demux and decode without error; partially fixing ticket #1693. This pulls in the decode_gain_control() function from the ffmpeg summer-of-code repo (original author Maxim Gavrilov) at svn://svn.mplayerhq.hu/soc/aac/aac.c with some minor modifications and adds AOT_AAC_SSR to decode_audio_specific_config_gb(). Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Co-authored-by: Maxim Gavrilov <maxim.gavrilov@gmail.com>
* | avcodec/nvdec: Implement mjpeg nvdec hwaccelPhilip Langdale2018-02-21
| |
* | vaapi: Add MJPEG decode hwaccelMark Thompson2018-02-21
| |
* | vaapi_decode: Make the frames context format selection more generalMark Thompson2018-02-21
| | | | | | | | | | Examine the supported fourcc list manually and make the best choice, then use the external attribute on the frames context to force that fourcc.
* | mjpegdec: Add hwaccel hooksMark Thompson2018-02-21
| | | | | | | | | | Also adds some extra fields to the main context structure that may be needed by a hwaccel decoder.
* | lavc/mjpeg: Add profiles for MJPEG using SOF marker codesMark Thompson2018-02-21
| | | | | | | | | | | | This is needed by later hwaccel code to tell which encoding process was used for a particular frame, because hardware decoders may only support a subset of possible methods.
* | avcodec/cavsdec: Check alpha/beta offsetMichael Niedermayer2018-02-22
| | | | | | | | | | | | | | | | Fixes: Integer overflow Fixes: 6183/clusterfuzz-testcase-minimized-6269224436629504 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit '6d5a6dde5301c81e221a37b3f39bb03149492b98'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | | | | | * commit '6d5a6dde5301c81e221a37b3f39bb03149492b98': h264_metadata: Add option to delete filler data Fixes #6899. Merged-by: Mark Thompson <sw@jkqxz.net>
| * h264_metadata: Add option to delete filler dataMark Thompson2018-02-20
| | | | | | | | | | Deletes both filler NAL units and filler SEI messages. (Annex B zero_bytes between NAL units are already discarded by the read/write process.)
* | Merge commit 'eccc03c8fbc603a0a3257df66f0705f74fe2581a'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | | | | | * commit 'eccc03c8fbc603a0a3257df66f0705f74fe2581a': cbs_h264: Add support for filler NAL units Some bitstream -> get_bits. Merged-by: Mark Thompson <sw@jkqxz.net>
| * cbs_h264: Add support for filler NAL unitsMark Thompson2018-02-20
| |
* | Merge commit '7157d959264f3729da463725c6faa580d9394d19'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | * commit '7157d959264f3729da463725c6faa580d9394d19': cbs_h264: Move slice_group_id array out of PPS structure Merged-by: Mark Thompson <sw@jkqxz.net>
| * cbs_h264: Move slice_group_id array out of PPS structureMark Thompson2018-02-20
| | | | | | | | It's very large, and is only used in some FMO streams.
* | Merge commit '78fa0b9033c0834c049e2aedf71a8c613fed87ab'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | | | | | | | * commit '78fa0b9033c0834c049e2aedf71a8c613fed87ab': h264_metadata: Always add the SEI user data to the first access unit Mostly already present from a308872b049e33f69f4b629a06f47e3681906b93, one cosmetic change applied. Merged-by: Mark Thompson <sw@jkqxz.net>
| * h264_metadata: Always add the SEI user data to the first access unitMark Thompson2018-02-20
| | | | | | | | | | This should be added even if the first access unit does not contain parameter sets.
* | Merge commit '69062d0f9b6aef5d9d9b8c9c9b5cfb23037caddb'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | | | | | * commit '69062d0f9b6aef5d9d9b8c9c9b5cfb23037caddb': h264_metadata: Use common SEI addition function Minor changes because the following patch is already present. Merged-by: Mark Thompson <sw@jkqxz.net>
| * h264_metadata: Use common SEI addition functionMark Thompson2018-02-20
| |
* | Merge commit 'a2ca8ed903b435446031a8a0792ca535e6ee2913'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | * commit 'a2ca8ed903b435446031a8a0792ca535e6ee2913': cbs_h264: Add utility functions to insert/delete SEI messages Merged-by: Mark Thompson <sw@jkqxz.net>
| * cbs_h264: Add utility functions to insert/delete SEI messagesMark Thompson2018-02-20
| |
* | Merge commit 'ce5870a3a8f2b10668ee4f04c2ae0287f66f31b2'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | | | | | * commit 'ce5870a3a8f2b10668ee4f04c2ae0287f66f31b2': cbs: Refcount all the things! Some changes for bitstream API. Merged-by: Mark Thompson <sw@jkqxz.net>
| * cbs: Refcount all the things!Mark Thompson2018-02-20
| | | | | | | | | | | | | | | | This makes it easier for users of the CBS API to get alloc/free right - all subelements use the buffer API so that it's clear how to free them. It also allows eliding some redundant copies: the packet -> fragment copy disappears after this change if the input packet is refcounted, and more codec-specific cases are now possible (but not included in this patch).
* | Merge commit '13ca5d34ba5c473211daaae0a101123bcaada3e6'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | | | | | | | * commit '13ca5d34ba5c473211daaae0a101123bcaada3e6': cbs_h264: Add hack for pic_timing with no active SPS Partially fixes #6896 - the sample stream from that ticket now works, but more obscure cases can still fail. Merged-by: Mark Thompson <sw@jkqxz.net>
| * cbs_h264: Add hack for pic_timing with no active SPSMark Thompson2018-02-20
| | | | | | | | | | If there is exactly one possible SPS but it is not yet active then just assume that it should be the active one.
* | Merge commit '0e4c166cdd6446522a085dd9731967d09ac71f72'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | * commit '0e4c166cdd6446522a085dd9731967d09ac71f72': cbs_h2645: Remove active ps references when it is replaced Merged-by: Mark Thompson <sw@jkqxz.net>
| * cbs_h2645: Remove active ps references when it is replacedMark Thompson2018-02-20
| |
* | Merge commit 'a3daecd6375279d9fdb863ac9db3545a33e97651'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | * commit 'a3daecd6375279d9fdb863ac9db3545a33e97651': cbs: Demote the "decomposition unimplemented" warning Merged-by: Mark Thompson <sw@jkqxz.net>
| * cbs: Demote the "decomposition unimplemented" warningMark Thompson2018-02-20
| | | | | | | | | | | | This is harmless and should not be a warning - unknown units are passed through to the write functions unchanged, and no other code will interact with them.
* | Merge commit '67eb2b16daa77f6ba3e04a28ca18e53193723b7f'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | * commit '67eb2b16daa77f6ba3e04a28ca18e53193723b7f': vaapi_h265: Mark unused entries in RefPicList[01] as explicitly invalid Merged-by: Mark Thompson <sw@jkqxz.net>
| * vaapi_h265: Mark unused entries in RefPicList[01] as explicitly invalidMark Thompson2018-02-20
| | | | | | | | | | The iHD driver looks at entries beyond num_ref_idx_l[01]_active_minus1 for unknown reasons.
* | Merge commit '216c44dfc17252ec0681dcb0bbeeb45a9d14eca7'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | * commit '216c44dfc17252ec0681dcb0bbeeb45a9d14eca7': vaapi_encode: Destroy output buffer pool before VA context Merged-by: Mark Thompson <sw@jkqxz.net>
| * vaapi_encode: Destroy output buffer pool before VA contextMark Thompson2018-02-20
| | | | | | | | | | The buffers are created associated with the context, so they should be destroyed before the context is. This is enforced by the iHD driver.
* | Merge commit 'c8e135ea9225137050a6315fd9ba9c0f242c90b6'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | | | | | | | * commit 'c8e135ea9225137050a6315fd9ba9c0f242c90b6': vaapi_encode: Allocate slice structures and parameter buffers dynamically Already present as e4a6eb70f471eda36592078e8fa1bad87fc9df73, one minor fix for libav merged. Merged-by: Mark Thompson <sw@jkqxz.net>
| * vaapi_encode: Allocate slice structures and parameter buffers dynamicallyJun Zhao2018-02-20
| | | | | | | | | | | | | | | | | | This removes the arbitrary limit on the allowed number of slices and parameter buffers. From ffmpeg commit e4a6eb70f471eda36592078e8fa1bad87fc9df73. Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | Merge commit '254e728d207c173a3714e6a01c9d68fcb3af8b73'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | | | | | * commit '254e728d207c173a3714e6a01c9d68fcb3af8b73': cbs: Minor comment fixes / cosmetics Mostly already present, one small fix. Merged-by: Mark Thompson <sw@jkqxz.net>
| * cbs: Minor comment fixes / cosmeticsMark Thompson2018-02-20
| |
* | Merge commit '1d12a545ce828eaf4fb37295400008ea37635ab8'Mark Thompson2018-02-21
|\| | | | | | | | | | | | | | | | | | | * commit '1d12a545ce828eaf4fb37295400008ea37635ab8': cbs: Add an explicit type for coded bitstream unit types Mostly already present from 6734eef6b8b464139fdc140ec9bc9e8d74173869, two minor message changes are merged. Merged-by: Mark Thompson <sw@jkqxz.net>
| * cbs: Add an explicit type for coded bitstream unit typesMark Thompson2018-02-20
| | | | | | | | Also fix conversion specifiers used for the unit type.
| * cbs: Allocate the context inside the init functionMark Thompson2018-02-20
| | | | | | | | | | ... instead of making callers allocate it themselves. This is more consistent with other APIs in libav.
| * build: Ignore generated mpeg12framerate test binaryDiego Biurrun2018-02-12
| |
| * avcodec/vc1dec: fix mby_start for interlaced contentMichael Niedermayer2018-02-11
| | | | | | | | | | | | Bug-Id: 1100 Bug-Id: ffmpeg/Ticket2531 Cc: libav-stable@libav.org
| * lavc/qsv: default la_ds to MFX_LOOKAHEAD_DS_UNKNOWNRuiling Song2018-02-12
| | | | | | | | | | | | | | | | MFX_LOOKAHEAD_DS_UNKNOWN means auto. -1 is not a valid value. Signed-off-by: Ruiling Song <ruiling.song@intel.com> Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
* | avcodec/diracdec: Fix integer overflow in mv computationMichael Niedermayer2018-02-20
| | | | | | | | | | | | | | | | Fixes: signed integer overflow: -2072 + -2147483646 cannot be represented in type 'int' Fixes: 6097/clusterfuzz-testcase-minimized-5034145253163008 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/h264_parse: Clear invalid chroma weights in ff_h264_pred_weight_table()Michael Niedermayer2018-02-20
| | | | | | | | | | | | | | | | Fixes: 6037/clusterfuzz-testcase-minimized-5030249784934400 Fixes: signed integer overflow: 256 * 16992036 cannot be represented in type 'int' Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/aacdec_templat: Fix integer overflow in apply_ltp()Michael Niedermayer2018-02-20
| | | | | | | | | | | | | | | | Fixes: signed integer overflow: -1625276744 + -1041893960 cannot be represented in type 'int' Fixes: 5948/clusterfuzz-testcase-minimized-5791479856365568 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/jpeg2000dwt: Fix integer overflows in sr_1d53()Michael Niedermayer2018-02-20
| | | | | | | | | | | | | | Fixes: 5918/clusterfuzz-testcase-minimized-5120505435652096 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/diracdec: Use int64 in global mv to prevent overflowMichael Niedermayer2018-02-20
| | | | | | | | | | | | | | | | Fixes: runtime error: signed integer overflow: 361 * -6295541 cannot be represented in type 'int' Fixes: 5911/clusterfuzz-testcase-minimized-6450382197751808 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dxtory: Remove code that corrupts dimensionsMichael Niedermayer2018-02-20
| | | | | | | | | | | | | | | | | | | | Fixes: Timeout Fixes: 5796/clusterfuzz-testcase-minimized-5206729085157376 Does someone have a valid sample that triggers this path ? Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/mediacodecdec: refactor to take advantage of new decoding apiAman Gupta2018-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This refactor splits up the main mediacodec decode loop into two send/receive helpers, which are then used to rewrite the receive_frame callback and take full advantage of the new decoding api. Since we can now request packets on demand with ff_decode_get_packet(), the fifo buffer is no longer necessary and has been removed. This change was motivated by behavior observed on certain Android TV devices, featuring hardware mpeg2/h264 decoders which also deinterlace content (to produce multiple frames per field). Previously, this code caused buffering issues because queueInputBuffer() was always invoked before each dequeueOutputBuffer(), even though twice as many output buffers were being generated. With this patch, the decoder will always attempt to drain new frames first before sending more data into the underlying codec. Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>