Michael Niedermayer
a066fc25ca
avformat/rtsp: Check number of streams in sdp_parse_line()
...
Fixes: OOM
Found-by: Michael Hanselmann <public@hansmi.ch >
Reviewed-by: Michael Hanselmann <public@hansmi.ch >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 497c9b0cce
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
636e66f350
avformat/rtsp: Clear reply in every iteration in ff_rtsp_connect()
...
Fixes: Infinite loop
Found-by: Michael Hanselmann <public@hansmi.ch >
Reviewed-by: Michael Hanselmann <public@hansmi.ch >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0b50f27635
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
c600c06af9
avcodec/fic: Check that there is input left in fic_decode_block()
...
Fixes: Timeout
Fixes: 12450/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FIC_fuzzer-5661984622641152
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit db1c4acd02
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
fcfa104b0e
avcodec/tiff: Check for 12bit gray fax
...
Fixes: Assertion failure
Fixes: 11898/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5759794191794176
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ec28a85107
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
f5c6d42124
avutil/imgutils: Optimize memset_bytes() by using av_memcpy_backptr()
...
This is strongly based on code by Marton Balint, and depends on the previous commit
Fixes: Timeout
Fixes: 11502/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WCMV_fuzzer-5664893810769920
Before: Executed clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WCMV_fuzzer-5664893810769920 in 11209 ms
After: Executed clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WCMV_fuzzer-5664893810769920 in 4104 ms
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f64c0dffa1
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
63de02051d
avutil/mem: Optimize fill32() by unrolling and using 64bit
...
Reviewed-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 12b1338be3
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
James Almer
48ca78728a
configure: bump year
...
Happy new year!
(cherry picked from commit 3209d7b393
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
1e09bf4d10
avcodec/diracdec: Check component quant
...
Fixes: Timeout
Fixes: 10708/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5730140957442048
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 28c96c2ce2
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
bf83eadbcc
avcodec/tests/rangecoder: initialize array to avoid valgrind warning
...
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c15972f0af
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
5a9170345a
avcodec/h264_slice: Fix integer overflow in implicit_weight_table()
...
Fixes: signed integer overflow: 2 * 2132811760 cannot be represented in type 'int'
Fixes: 11156/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-6237685933408256
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 77e56d74f9
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
11e8ea4d0a
avcodec/exr: set layer_match in all branches
...
Otherwise it is left to the value from the previous iteration
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 433d2ae435
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
6c2b4c716b
avcodec/exr: Check for duplicate channel index
...
Fixes: Out of memory
Fixes: 11582/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-5730204559867904
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f9728feaf9
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
96ef96f6ba
avcodec/4xm: Fix returned error codes
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 07607a1db8
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
ab0a8e4772
avformat/libopenmpt: Fix successfull typo
...
Reviewed-by: Lou Logan <lou@lrcd.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 571af98a59
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
472498ed47
avcodec/v4l2_m2m: fix cant typo
...
Reviewed-by: Lou Logan <lou@lrcd.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 062bf56393
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
541b627962
avcodec/mjpegbdec: Fix some misplaced {} and spaces
...
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 11a8d2ccab
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
David Bryant
cdf1dc136c
avformat/wvdec: detect and error out on WavPack DSD files
...
Not currently supported.
(cherry picked from commit db109373d8
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
gxw
4dbfbcef16
avcodec/mips: Fix failed case: hevc-conformance-AMP_A_Samsung_* when enable msa
...
The AV_INPUT_BUFFER_PADDING_SIZE has been increased to 64, but the value is still 32
in function ff_hevc_sao_edge_filter_8_msa. So, use AV_INPUT_BUFFER_PADDING_SIZE directly.
Also, use MAX_PB_SIZE directly instead of 64. Fate tests passed.
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f652c7a45c
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
67bc75d5b1
avcodec/fic: Fail on invalid slice size/off
...
Fixes: Timeout
Fixes: 11486/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FIC_fuzzer-5677133863583744
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 30a7a81cdc
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
3355596325
postproc/postprocess_template: remove FF_REG_sp from clobber list
...
Future gcc may no longer support this
Tested-by: James Almer <jamrial@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c1cbeb87db
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
3006a5675c
postproc/postprocess_template: Avoid using %4 for the threshold compare
...
This avoids problems if %4 is the stack pointer
the constraints do not allow %4 to be the stack pointer but gcc 9 may
no longer support specifying such constraints
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4325527e1c
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
90d73a207c
avcodec/rpza: Check that there is enough data for all the blocks
...
Fixes: Timeout
Fixes: 11547/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RPZA_fuzzer-5678435842654208
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e63517e00a
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
5161e1e610
avcodec/rpza: Move frame allocation to a later point
...
This will allow performing some fast checks before the slow allocation
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8a708aa99c
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
b29b6afdfb
avcodec/avcodec: Document the data type for AV_PKT_DATA_MPEGTS_STREAM_ID
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 68e011e410
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
d0e900187c
avformat/mpegts: Fix side data type for stream id
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ab1319d82f
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
965eddc7ed
tests/fate/filter-video: increase fuzz for fate-filter-refcmp-psnr-rgb
...
Fixes: test failure on powerpc
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f8f762c300
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
bd9525b4bf
avcodec/mjpegdec: Fix indention of ljpeg_decode_yuv_scan()
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ea30ac1e40
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
chcunningham
e02f55a3c5
lavf/id3v2: fail read_apic on EOF reading mimetype
...
avio_read may return EOF, leaving the mimetype array unitialized. fail
early when this occurs to avoid using the array in an unitialized state.
Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ee1e39a576
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
b80d504412
avformat/nutenc: Document trailer index assert better
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3a95b73abc
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
chcunningham
5d9daae62b
lavf/mov: ensure only one tkhd per trak
...
Chromium fuzzing produced a whacky file with extra tkhds. This caused
an AVStream that was already in use to be corrupted by assigning it a
new id, which blows up later in mov_read_trun because the
MOVFragmentStreamInfo.index_entry now points OOB.
Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c9f7b6f7a9
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
50ee16431c
avcodec/clearvideo: Check remaining input bits in P macro block loop
...
Fixes: Timeout
Fixes: 11083/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CLEARVIDEO_fuzzer-5657180351496192
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7aaab127be
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
ff8ba749b4
avcodec/dxv: Check that there is enough data to decompress
...
Fixes: Timeout
Fixes: 10979/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DXV_fuzzer-6178582203203584
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2bc3811c0d
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
7070de99c0
avcodec/ppc/hevcdsp: Fix build failures with powerpc-linux-gnu-gcc-4.8 with --disable-optimizations
...
The affected functions could also be changed into macros, this is the
smaller change to fix it though. And avoids (probably) less readable macros
The extra code should be optimized out when optimizations are done as all values
are known at build after inlining.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2c64a6bcd2
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
c3e263b862
avcodec/msvideo1: Check for too small dimensions
...
Such low resolution would result in empty output as a minimum of 4x4 is needed
We could also check for multiple of 4 dimensions but that is not needed
Fixes: Timeout
Fixes: 11191/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSVIDEO1_fuzzer-5739529588178944
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 953bd58861
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
f3095068d8
avcodec/wmv2dec: Skip I frame if its smaller than 1/8 of the minimal size
...
Frames that small are not valid and of limited use for error concealment, while
being very computationally intensive to process.
Fixes: Timeout
Fixes: 11168/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV2_fuzzer-5733782032744448
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d6f4341522
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
ee20d64bec
avcodec/msmpeg4dec: Skip frame if its smaller than 1/8 of the minimal size
...
Frames that small are not valid and of limited use for error concealment, while
being very computationally intensive to process.
Fixes: Timeout
Fixes: 11318/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSMPEG4V1_fuzzer-5710884555456512
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 09ec182864
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
773f58229f
avcodec/truemotion2rt: Fix rounding in input size check
...
Fixes: Timeout
Fixes: 11332/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2RT_fuzzer-5678456612847616
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7f22a4ebc9
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
040aa14074
avcodec/truemotion2: fix integer overflows in tm2_low_chroma()
...
Fixes: 11295/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-4888953459572736
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2ae39d7956
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
0e11b29834
avcodec/pngdec: Check compression method
...
method 0 (inflate/deflate) is the only specified in the specification and the only supported
Fixes: Timeout
Fixes: 10976/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PNG_fuzzer-5729372588736512
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1f99674ddd
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
dab6409d84
fftools/ffmpeg: Repair reinit_filter feature
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3504004879
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
4b0d040e18
avcodec/shorten: Fix integer overflow with offset
...
Fixes: signed integer overflow: -1625810908 - 582229060 cannot be represented in type 'int'
Fixes: 10977/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-5732602018267136
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2f888771cd
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Andreas Rheinhardt
5bdc1e51fd
h264_redundant_pps: Fix logging context
...
The first element of H264RedundantPPSContext is not a pointer to an
AVClass as required.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6dafcb6fdb
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
92382748e4
avcodec/cavsdec: Propagate error codes inside decode_mb_i()
...
Fixes: Timeout
Fixes: 10702/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CAVS_fuzzer-5669940938407936
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c1cee05656
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
86ba4473fa
avcodec/mpeg4videodec: Clear partitioned frame in decode_studio_vop_header()
...
partitioned_frame is also set/cleared in decode_vop_header()
Fixes: out of array read
Fixes: 9789/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG4_fuzzer-5638681627983872
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 074187d599
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
Michael Niedermayer
9664c3a4d4
avcodec/mpegaudio_parser: Consume more than 0 bytes in case of the unsupported mp3adu case
...
Fixes: Timeout
Fixes: 10966/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MP3ADU_fuzzer-5348695024336896
Fixes: 10969/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MP3ADUFLOAT_fuzzer-5691669402877952
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit df91af140c
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-03-21 10:42:51 +01:00
James Almer
d53202f92d
avcodec/hevcdec: decode at most one slice reporting being the first in the picture
...
Fixes deadlocks when decoding packets containing more than one of the aforementioned
slices when using frame threads.
Tested-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 70c8c8a818
)
2019-03-20 20:44:28 -03:00
Paul B Mahol
7c000b9cea
avformat/dsfdec: fix calculation of size of data chunk
...
Ignore extra 12 bytes that belong to tag and size.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2018-12-19 10:23:55 +01:00
Paul B Mahol
e44498984d
avformat/dsfdec: properly handle padded last packet
...
Fixes #5489 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2018-12-19 10:23:39 +01:00
Mark Wu
263b3ad407
avcodec/hevcdec: fix non-ref frame judgement
...
After inspecting the source code of x265, mpv and ffmpeg, I've found that
ffmpeg mistakenly regards EVC_NAL_BLA_N_LP and HEVC_NAL_IDR_N_LP as non-
reference frames, which are acutally reference frames according to the
specification in x265, and drops them.
This patch should address the problem. I have tested it with mpv.
Signed-off-by: Mark Wu <wfwf1997@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 10bc4c3a7d
)
2018-11-10 15:24:41 -03:00
James Almer
dee8f4b01b
avcodec/libaomenc: remove AVOption related to frame partitions
...
Support for it was apparently never in the codebase, and the enum
value was recently removed from the public headers [1]
[1] https://aomedia.googlesource.com/aom/+/df4ffb73140fe31bebdabd17c1a7b53721e74838
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit b69ea742ab
)
2018-11-03 00:19:52 -03:00