James Almer
4264723b0e
avdevice/iec61883: return reference counted packets
...
Fixes part of ticket #7146 , dealing with leaks of packet data since
commit 87c8812270
.
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit b8629654c6
)
2018-04-18 23:03:14 -03:00
Timo Rothenpieler
4faa01f20c
configure: add nvcc to CMDLINE_SET
...
This was somehow forgotten and nobody noticed until now.
2018-04-16 22:38:11 +02:00
James Almer
1b9b469cdb
avcodec/mpeg4_unpack_bframes: make sure the packet is writable when data needs to be changed
...
Nothing currently guarantees that the packet passed to the bsf will
be writable.
Based on commit 4f2ff3a53e
Signed-off-by: James Almer <jamrial@gmail.com >
2018-03-28 01:42:33 -03:00
James Almer
a45ba0881c
avcodec/mp3_header_decompress: don't free the user provided packet on error
...
It's owned by the caller.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit f18f973469
)
2018-03-28 01:17:51 -03:00
James Almer
c289f4b6c9
avcodec/extract_extradata: zero initalize the padding bytes in all allocated buffers
...
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit d168e78eff
)
2018-03-10 09:55:36 -03:00
James Almer
e4b95f710b
avformat/hvcc: zero initialize the nal buffers past the last written byte
...
Prevents use of uninitialized values.
Fixes ticket #7038 .
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 9482ec1b20
)
2018-02-24 00:38:15 -03:00
Tobias Rapp
8be1edf47b
swresample/rematrix: fix update of channel matrix if input or output layout is undefined
...
Prefer direct in/out channel count values over channel layout, when
available. Fixes a pan filter bug (ticket #6790 ).
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com >
(cherry picked from commit 6325bd3717
)
2018-02-20 08:47:48 +01:00
James Almer
3fdff40a32
avformat/matroskadec: ignore CodecPrivate if the stream is VP9
...
Defined in a recent revision of https://www.webmproject.org/docs/container/
This prevents storing the contents of CodecPrivate into extradata for
a codec that doesn't need nor expect any. It will among other things
prevent matroska specific binary data from being dumped onto other
formats during remuxing.
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit acdea9e7c5
)
2018-02-19 22:16:58 -03:00
Michael Niedermayer
6a97ba5215
Changelog: update
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
n3.4.2
2018-02-11 22:30:54 +01:00
Michael Niedermayer
2ad23b93b5
avcodec/vp3: Error out on invalid num_coeffs in unpack_vlcs()
...
This fixes a hypothetical integer overflow
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f2318aee8c
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-11 19:41:43 +01:00
Michael Niedermayer
cec38382db
avcodec/mpeg4videodec: Ignore multiple VOL headers
...
Fixes: Ticket7005
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 63a4bdbf3b
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-11 19:41:43 +01:00
Michael Niedermayer
0ff1825ea3
avcodec/vp3: Check eob_run
...
Fixes: out of array access
Fixes: 5919/clusterfuzz-testcase-minimized-5859311382167552
Fixes: special case for theora (untested due to lack of sample)
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 570023eab3
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-11 19:41:43 +01:00
Michael Niedermayer
4423cbf1b4
avcodec/pafvideo: Check allocated frame size
...
Fixes: OOM
Fixes: 5549/clusterfuzz-testcase-minimized-5390553567985664
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 66acb63028
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-11 19:41:43 +01:00
Michael Niedermayer
c4153d40d5
avcodec/scpr: Fix reading a pixel before the first
...
Fixes: 5540/clusterfuzz-testcase-minimized-6122458273808384
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 0fb33a8289
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-11 19:41:43 +01:00
Nekopanda
cc0d2f110d
avcodec/mpeg2dec: Fix field selection for skipped macroblocks
...
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 >
(cherry picked from commit 8b154cb3e9
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-11 19:41:43 +01:00
Michael Niedermayer
86296fe24d
avcodec/huffyuvdec: Check input buffer size
...
Fixes: Timeout
Fixes: 5487/clusterfuzz-testcase-4696837035393024
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 >
(cherry picked from commit 08c220d26c
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-11 19:41:43 +01:00
Michael Niedermayer
342f1da134
avcodec/utvideodec: Fix bytes left check in decode_frame()
...
Fixes: out of array read
Fixes: poc-2017.avi
Found-by: GwanYeong Kim <gy741.kim@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 118e1b0b33
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-11 19:41:43 +01:00
Michael Niedermayer
5e67a2e13a
avcodec/wavpack: Fix integer overflow in FFABS
...
Fixes: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
Fixes: 5396/clusterfuzz-testcase-minimized-6558555529281536
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 8e50bd61e4
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-11 19:41:43 +01:00
Michael Niedermayer
9efd80dc09
avcodec/aacsbr_fixed: Fix overflows in rounding in sbr_hf_assemble()
...
Fixes: runtime error: signed integer overflow: 2052929346 + 204817098 cannot be represented in type 'int'
Fixes: 5275/clusterfuzz-testcase-minimized-5367635958038528
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 b1bef755f6
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-11 19:41:43 +01:00
Michael Niedermayer
ce7f65be6e
avcodec/exr: Fix memleaks in decode_header()
...
Fixes: 4793/clusterfuzz-testcase-minimized-5707366629638144
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 0a2560a977
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-11 19:41:43 +01:00
James Almer
9b97afe7ad
Changelog: update for the previous four commits
...
Signed-off-by: James Almer <jamrial@gmail.com >
2018-01-30 22:13:05 -03:00
James Almer
af54886de8
avcodec/mediacodecdec: use ff_hevc_ps_uninit()
...
Fixes memleaks.
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 782e066e3e
)
2018-01-30 22:07:35 -03:00
James Almer
e5bbb52194
avcodec/hevc_parser: use ff_hevc_uninit_parameter_sets()
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 2159d4bbc3
)
2018-01-30 22:07:28 -03:00
James Almer
d7d5a3379d
avcodec/hevcdec: use ff_hevc_uninit_parameter_sets()
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 1f0cf1b2f4
)
2018-01-30 22:07:21 -03:00
James Almer
64f0fd5998
avcodec/hevc_ps: add a function to uninitialize parameter set buffers
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 9462b2b820
)
2018-01-30 22:06:59 -03:00
Michael Niedermayer
dd93df46a6
Update for 3.4.2
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 01:09:12 +01:00
Michael Niedermayer
c1c50fc4a7
avcodec/dirac_dwt: Fix several integer overflows
...
Fixes: runtime error: signed integer overflow: -2146071175 + -268479557 cannot be represented in type 'int'
Fixes: 5237/clusterfuzz-testcase-minimized-4569895275593728
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 fe1e6c06d0
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-30 23:55:43 +01:00
Michael Niedermayer
d06972535e
avcodec/indeo5: Do not leave frame_type set to an invalid value
...
Fixes: null pointer dereference
Fixes: 5264/clusterfuzz-testcase-minimized-4621956621008896
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 2ff9f17851
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-30 23:45:10 +01:00
Michael Niedermayer
93437a18d8
avcodec/hevc_ps: Check log2_sao_offset_scale_*
...
Fixes: 4868/clusterfuzz-testcase-minimized-6236542906400768
Fixes: runtime error: shift exponent 126 is too large for 32-bit 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 >
(cherry picked from commit 4a75a75c62
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-30 23:26:03 +01:00
Michael Niedermayer
d07f78ae72
avcodec/mpeg4videodec: Avoid possibly aliasing violating casts
...
Found-by: kierank
Reviewed-by: Kieran Kunhya <kieran618@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d4967c04e0
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-30 23:08:58 +01:00
Michael Niedermayer
cd478122b0
avcodec/get_bits: Document the return code of get_vlc2()
...
Found-by: kierank
Reviewed-by: Kieran Kunhya <kieran618@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4a94ff4ccd
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-30 22:50:23 +01:00
Michael Niedermayer
6723a43609
avcodec/mpeg4videodec: Check mb_num also against 0
...
The spec implies that 0 is invalid in addition to the existing checks
Found-by: <kierank>
Reviewed-by: Kieran Kunhya <kieran618@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 05f4703a16
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-30 22:49:55 +01:00
Michael Niedermayer
2980b95faf
avfilter/vf_transpose: Fix used plane count.
...
Fixes out of array access
Fixes: poc.mp4
Found-by: GwanYeong Kim <gy741.kim@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c6939f65a1
)
(cherry picked from commit 3f621455d6
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Michael Niedermayer
11498c22a0
avcodec/hevc_cabac: Check prefix so as to avoid invalid shifts in coeff_abs_level_remaining_decode()
...
I suspect that this can be limited tighter, but i failed to find anything
in the spec that would confirm that.
Fixes: 4833/clusterfuzz-testcase-minimized-5302840101699584
Fixes: runtime error: left shift of 134217730 by 4 places 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 >
(cherry picked from commit a026a3efae
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Michael Niedermayer
2fdb27b512
avcodec/mjpegdec: Fix integer overflow in DC dequantization
...
Fixes: runtime error: signed integer overflow: -65535 * 65312 cannot be represented in type 'int'
Fixes: 4900/clusterfuzz-testcase-minimized-5769019744321536
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 1bfc1aa004
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Michael Niedermayer
c1b74d608c
avcodec/dxtory: Fix bits left checks
...
Fixes: Timeout
Fixes: 4863/clusterfuzz-testcase-6347354178322432
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 6e1a167c55
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Michael Niedermayer
edf200e2bc
avcodec/hevc_cabac: Move prefix check in coeff_abs_level_remaining_decode() down
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 94d4237a7a
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Michael Niedermayer
6ed5e44998
avcodec/truemotion2: Fix integer overflow in TM2_RECALC_BLOCK()
...
Fixes: signed integer overflow: 1477974040 - -1877995504 cannot be represented in type 'int'
Fixes: 4861/clusterfuzz-testcase-minimized-4570316383715328
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 56a53340ed
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Michael Niedermayer
aed915b8a6
avcodec/snowdec: Fix integer overflow before htaps check
...
Fixes: runtime error: signed integer overflow: -1094995529 * 2 cannot be represented in type 'int'
Fixes: 4828/clusterfuzz-testcase-minimized-5100849937252352
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 2eecf3cf8e
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Michael Niedermayer
540f4467c8
avcodec/ulti: Check number of blocks at init
...
Fixes: Timeout
Fixes: 4832/clusterfuzz-testcase-4699096590843904
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 725353525e
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Michael Niedermayer
bae4d39437
avcodec/wavpack: Fix integer overflows in wv_unpack_stereo / mono
...
Fixes: runtime error: signed integer overflow: 2146276249 + 1487583 cannot be represented in type 'int'
Fixes: 4823/clusterfuzz-testcase-minimized-4551896611160064
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 83e34ae3c2
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Michael Niedermayer
f56215d3ff
avcodec/jpeg2000: Check sum of sizes of band->prec before allocating
...
Fixes: OOM
Fixes: 4810/clusterfuzz-testcase-minimized-6034253235093504
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 6887e41243
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Michael Niedermayer
56b0179b6a
avcodec/ac3dec_fixed: Fix integer overflow in scale_coefs()
...
Fixes: runtime error: signed integer overflow: 2147483520 + 128 cannot be represented in type 'int'
Fixes: 4800/clusterfuzz-testcase-minimized-6110372403609600
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 a1f38c7589
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Nikolas Bowe
e755482d36
avformat/lrcdec: Fix memory leak in lrc_read_header()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ef5994e09d
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Nikolas Bowe
facd0521e4
avformat/matroskadec: Fix float-cast-overflow undefined behavior in matroska_parse_tracks()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e07649e618
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Jun Zhao
7b56d6584c
lavfi/deinterlace_vaapi: fix can't show full option information.
...
use ffmpeg -h filter=deinterlace_vaapi can't get full help information,
the root cause is not setting the flags fileld in options.
Signed-off-by: Jun Zhao <jun.zhao@intel.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 383804edd8
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Carl Eugen Hoyos
092febb2ad
configure: bump year
...
Happy new year!
(cherry picked from commit bddf31ba75
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Michael Niedermayer
04949cc08e
avcodec/utils: Avoid hardcoding duplicated types in sizeof()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 860d991fcd
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Michael Niedermayer
ece7879992
avcodec/arm/sbrdsp_neon: Use a free register instead of putting 2 things in one
...
Fixes high pitched shriek
Fixes: 25420848_1478428308873746_4255813235963330560_n.mp4
Reported-by: Dale Curtis <dalecurtis@google.com >
Reviewed-by: Dale Curtis <dalecurtis@chromium.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7dbbb75ee3
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00
Michael Niedermayer
4715ef27a0
avcodec/h264addpx_template: Fixes integer overflows
...
Fixes: signed integer overflow: 512 + 2147483491 cannot be represented in type 'int'
Fixes: 4780/clusterfuzz-testcase-minimized-4709066174627840
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 d6945aeee4
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-28 15:33:09 +01:00