Rostislav Pehlivanov
2e23cfbb42
allcodecs: reorder ff_bitpacked_decoder
...
Needs to be in alphabetical order.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
7 years ago
Michael Niedermayer
168d8d56bf
avcodec/mpeg4videodec: Fix slice end detection in mpeg4_decode_studio_mb()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Timo Rothenpieler
0c71c6d66f
avcodec/utils: document allocation requirement of extradata
7 years ago
Paul B Mahol
4d87cd2882
avcodec/prosumer: fix some minor issues
7 years ago
Paul B Mahol
aba720dce2
avcodec: add Brooktree ProSumer Video decoder
7 years ago
James Almer
3d2cf50ebb
avcodec/libopusenc: support encoding packets of sizes bigger than 60ms
...
Packets of sizes 80ms, 100ms and 120ms are allowed since libopus 1.2
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
35c84ae834
Revert "avcodec/opus_parser: Handle complete frames flag."
...
This reverts commit 7e0df5910e
.
"complete frames" containers, even if they don't need to assemble
packets, still depended on this code for proper packet duration and
timestamp generation.
7 years ago
hwren
b8da7ba5ac
lavc/extract_extradata_bsf.c: add AVS2
...
Signed-off-by: hwren <hwrenx@126.com>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Jun Zhao
c9ed7f0024
lavc/encode: remove redundant av_init_packet after av_packet_unref.
...
remove redundant av_init_packet after av_packet_unref.
av_packet_unref have call av_init_packet and reset the packet size.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
7 years ago
Zhong Li
69caad8959
qsvdec: Release packet on decoding failure for mpeg2/vp8/vc1
...
H264/265 have been fixed such an issue with commit
559370f2c4
.
Similar fixing is needed for other codecs.
Signed-off-by: Zhong Li <zhong.li@intel.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years ago
Zhong Li
76eef04f30
qsvenc: Fix a misleading log message
...
Signed-off-by: Zhong Li <zhong.li@intel.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years ago
Zhao Zhili
70d2bab80b
lavc/hevc_ps: fix crop info for monochrome
...
The values of SubWidthC and SubHeightC are 1 in the ITU-T H.265. The
current code use the value of 2.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Jun Zhao
e2921578c0
lavc/libkvazaar: fix incompatible pointer type.
...
fix the waring: libavcodec/libkvazaar.c:210:27: warning: passing argument 3 of ‘av_image_copy’ from incompatible pointer type [-Wincompatible-pointer-types]
frame->data, frame->linesize,
^~~~~
In file included from libavcodec/libkvazaar.c:31:0:
./libavutil/imgutils.h:119:6: note: expected ‘const uint8_t ** {aka const unsigned char **}’ but argument is of type ‘uint8_t * const* {aka unsigned char * const*}’
void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
7 years ago
Martin Vignali
9e64ee3936
avcodec/psd : add support for gray float
7 years ago
Zhong Li
900487043b
lavc/qsvenc: add quality status to side_data
...
Add fix a memory leak issue as James's comments.
V2: use a local pict_type since coded_frame is deprecated.
Signed-off-by: Zhong Li <zhong.li@intel.com>
7 years ago
Jacob Trimble
7e0df5910e
avcodec/opus_parser: Handle complete frames flag.
...
Signed-off-by: Jacob Trimble <modmaker@google.com>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Paul B Mahol
24b24e14d6
avcodec/codec_desc: mark Duck TrueMotion 2.0 Real Time as intra only
7 years ago
Timo Rothenpieler
dc2d56a66b
avcodec/nvenc: add option to turn off a53 closed caption embedding
7 years ago
Paul B Mahol
42a99b76de
avcodec: add IMM4 decoder
...
This work is sponsored by VideoLAN.
7 years ago
Michael Niedermayer
77429b4217
avcodec/cfhd: Use the actual count instead of the expected in peak_table()
...
Fixes: out of array access (no testcase)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
2c1613ac94
avcodec/cfhd: Move peak_table() and difference_coding() calls after the existing coefficient count check
...
Fixes: out of array access
Fixes: 9509/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5283250636324864
Fixes: 9572/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-4920757409808384
Fixes: 9596/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5114917580439552
Fixes: 9640/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-6247840698335232
Fixes: 9659/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-6079554987753472
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
dbac849c4d
avcodec/lagarith: Optimize FRAME_SOLID_RGBA
...
Changes 5466110 decicycles to 1798072 decicycles (tested with fate-suite/lagarith/lag-rgb32.avi)
Fixes: Timeout
Fixes: 9484/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LAGARITH_fuzzer-5707859156271104
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
James Almer
728760de35
Revert "avcodec/libaomdec: auto insert dump_extra bitstream filter"
...
This reverts commit e45ed15594
.
The Matroska spec was updated to not remove Sequence Header OBUs from key
frames, so this is no longer needed.
7 years ago
James Almer
96a7099f3e
avcodec/av1_parse: take trailing bits into account when initializing the GetBitContext
...
Also only initialize it in ff_av1_packet_split() and not ff_av1_extract_obu(),
same as h2645_parse, so GetBitContext specific failures may not affect the
latter.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
662558f985
decode: copy the output parameters from the last bsf in the chain back to the AVCodecContext
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
ad99cbc9b3
decode: flush the internal bsfs instead of constantly reinitalizing them
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
0e27e27670
h264_redundant_pps_bsf: implement a AVBSFContext.flush() callback
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
7f01c209f2
vp9_superframe_bsf: implement a AVBSFContext.flush() callback
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
eb1d1c764c
vp9_superframe_split_bsf: implement a AVBSFContext.flush() callback
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
d6321851ba
h264_mp4toannexb_bsf: implement a AVBSFContext.flush() callback
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
e1e1e8dbb2
bsf: add a flushing mechanism to AVBSFContext
...
Meant to reset the internal bsf state without the need to reinitialize it.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Kieran Kunhya
c85852d3de
h264: Support multi-field closed captions by using AVBufferRef and not resetting per field
...
Signed-off-by: Josh de Kock <joshdk@obe.tv>
7 years ago
James Almer
f631c328e6
avcodec/decode: copy the output parameters from the last bsf in the chain back to the AVCodecContext
...
Certain AVCodecParameters, like the contents of the extradata, may be changed
by the init() function of any of the bitstream filters in the chain.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
94fe138de0
avcodec/decode: flush the internal bsfs instead of constantly reinitalizing them
...
Initialize the bsfs once when opening the codec and uninitialize them once when
closing it, instead of at every codec flush/seek.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
2954e51393
avcodec/h264_redundant_pps_bsf: implement a AVBSFContext.flush() callback
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
e5b1f2b027
avcodec/mpeg4_unpack_bframes_bsf: implement a AVBSFContext.flush() callback
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
e9980c451e
avcodec/vp9_superframe_bsf: implement a AVBSFContext.flush() callback
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
63e0846c66
avcodec/vp9_superframe_split_bsf: implement a AVBSFContext.flush() callback
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
390f156451
avcodec/h264_mp4toannexb_bsf: implement a AVBSFContext.flush() callback
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
b33f5299a5
avcodec/bsf: add a flushing mechanism to AVBSFContext
...
Meant to reset the internal bsf state without the need to reinitialize it.
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
lee ju
6a0feafebe
avcodec/frame_thread_encoder: fix memory leak that occurs when close encoder without sending eof and receiving to end
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
3378194ce8
avcodec/scpr: Check for min > max in decompress_p()
...
Fixes: Timeout
Fixes: 9342/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-4795990841229312
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
9b604e96a5
avcodec/shorten: Fix signed 32bit overflow in shift in shorten_decode_frame()
...
Fixes: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
Fixes: 9480/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-6647324284551168 -rss_limit_mb=2000
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
db7e9082e1
avcodec/shorten: Fix integer overflow in residual/LPC combination
...
Fixes: signed integer overflow: -540538872 + -2012739576 cannot be represented in type 'int'
Fixes: 9255/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-5758630052757504
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
7007dabec0
avcodec/shorten: Check verbatim length
...
Fixes: Timeout
Fixes: 9252/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-5780720709533696
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Thilo Borgmann
72d9b8f4c5
lavc/videotoolboxenc: Fix compilation on osx 10.10.5 Yosemite
...
Signed-off-by: Aman Gupta <aman@tmm1.net>
7 years ago
Michael Niedermayer
0f4c3b0b8e
avcodec/mpegaudio_parser: Initialize poutbuf*
...
Possibly fixes: null pointer dereference
Possibly fixes: 9352/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MP3ADUFLOAT_fuzzer-5146068961460224
Fixes: Heap-use-after-free
Fixes: 9453/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MP3ADUFLOAT_fuzzer-5137954375729152
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
bf97d11b08
avcodec/ivi: Factor width dereference out of the loops in ivi_output_plane()
...
396078 -> 268468 dezicycles
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
82920bf494
avcodec/ivi: Only clip samples when needed in ivi_output_plane()
...
435740 -> 396078 dezicycles
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
6d8a289c98
avcodec/indeo5: require initial valid intra/gop headers not just later
...
Fixes: Timeout
Fixes: 9308/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_INDEO5_fuzzer-5284853581873152
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago