Andreas Cadhalpun
35db873534
fate: add streamcopy test for apng
...
Reviewed-by: James Almer <jamrial@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 719c15aa9a
)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-17 23:12:33 +01:00
Andreas Cadhalpun
3e33685892
apngdec: use side data to pass extradata to the decoder
...
Fixes remuxing apng streams coming from the apng demuxer.
This is a regression since 940b8908b9
.
Found-by: James Almer <jamrial@gmail.com >
Reviewed-by: James Almer <jamrial@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit e0c6b32046
)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-17 23:12:29 +01:00
Andreas Cadhalpun
d95568f9a2
mov: immediately return from mov_fix_index without old index entries
...
If there are no index entries, e_old = st->index_entries is only one
byte large, since it was created by av_realloc called with size 0.
Thus accessing e_old[0].timestamp causes a heap buffer overflow.
Reviewed-by: Sasi Inguva <isasi@google.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 9d83b209d8
)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-17 23:12:23 +01:00
Andreas Cadhalpun
6e5ccabbe8
interplayacm: increase bitstream buffer size by AV_INPUT_BUFFER_PADDING_SIZE
...
This fixes out-of-bounds reads by the bitstream reader.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 60178e78f2
)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-17 23:12:09 +01:00
Andreas Cadhalpun
266cf258cc
interplayacm: validate number of channels
...
The number of channels is used as divisor in decode_frame, so it must
not be zero to avoid SIGFPE crashes.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 5540d6c134
)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-17 23:11:57 +01:00
Andreas Cadhalpun
c90d521f16
interplayacm: check for too large b
...
This fixes out-of-bounds reads.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 14e4e26559
)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-17 23:11:49 +01:00
Andreas Cadhalpun
346fa70bb8
doc: fix spelling errors
...
Reviewed-by: Lou Logan <lou@lrcd.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 1e660fe88d
)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-17 23:11:34 +01:00
Andreas Cadhalpun
e92f585bd9
configure: make sure LTO does not optimize out the test functions
...
Fixes trac ticket #5909
Bud-Id: https://bugs.gentoo.org/show_bug.cgi?id=598054
Acked-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 890eb3d7c4
)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-17 23:11:29 +01:00
Andreas Cadhalpun
e622d7723b
fate: add apng encoding/muxing test
...
Also test the fallback to png creation for a single frame.
Reviewed-by: James Almer <jamrial@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 97792e85c3
)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-17 23:11:22 +01:00
Andreas Cadhalpun
1af7ddecda
apng: use side data to pass extradata to muxer
...
This fixes creating apng files, which is broken since commit
5ef1959080
.
Reviewed-by: James Almer <jamrial@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 940b8908b9
)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-17 23:11:12 +01:00
Michael Niedermayer
b9a0172260
avcodec/mpeg4videodec: Workaround interlaced mpeg4 edge MC bug
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2c9106257f
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
3f6aae377a
avcodec/mpegvideo: Fix edge emu buffer overlap with interlaced mpeg4
...
Fixes Ticket5936
Regression since c5fc8ae126
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 85407c7e63
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
0f8de7a3db
avcodec/rv40: Test remaining space in loop of get_dimension()
...
Fixes infinite loop
Fixes: 178/fuzz-3-ffmpeg_VIDEO_AV_CODEC_ID_RV40_fuzzer
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1546d487cf
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
7e8eb30f40
avcodec/ituh263dec: Avoid spending a long time in slice sync
...
Fixes: 177/fuzz-3-ffmpeg_VIDEO_AV_CODEC_ID_FLV1_fuzzer
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2baf36caed
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
8deaed3b12
avcodec/movtextdec: Add error message for tsmb_size check
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0eb3198005
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
a0c6b4cfd1
avcodec/movtextdec: Fix tsmb_size check==0 check
...
Fixes: 173/fuzz-3-ffmpeg_SUBTITLE_AV_CODEC_ID_MOV_TEXT_fuzzer
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a609905723
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
20d0f32012
avcodec/movtextdec: Fix potential integer overflow
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6ea2715768
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
07c5e65e6d
ffmpeg: Fix bsf corrupting merged side data
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 11f24e71ff
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
7521d5b8da
avcodec/sunrast: Fix input buffer pointer check
...
Fixes: out of array read
Fixes: poc.dat
Found-by: Bingchang, Liu @VARAS of IIE
Tested-by: bc L <l.bing.chang.bc@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 37138338ff
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
487accbf19
avcodec/tscc: Check side data size before use
...
Fixes out of array read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 979bca5134
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
fa1ee96026
avcodec/rscc: Fix constant
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e167610794
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
e8b9337281
avcodec/rawdec: Check side data size before use
...
Fixes out of array read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5f0bc0215a
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
aa896c182d
avcodec/rscc: Check side data size before use
...
Fixes out of array read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0f64b6cd22
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
956407b5df
avcodec/msvideo1: Check side data size before use
...
Fixes out of array read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 161ccdaa06
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
7821c96dd0
avcodec/qpeg: Check side data size before use
...
Fixes out of array read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 16793504df
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
0c0aa5ebba
avcodec/qtrle: Check side data size before use
...
Fixes out of array read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7d196f2a5a
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
3c1eb57d1e
avcodec/msrle: Check side data size before use
...
Fixes out of array read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a6330119a0
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
dc692ae1b7
avcodec/kmvc: Check side data size before use
...
Fixes out of array read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2d99101d09
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
be756396b5
avcodec/idcinvideo: Check side data size before use
...
Fixes out of array read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a2b8dde659
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
d8db018e31
avcodec/cinepak: Check side data size before use
...
Fixes out of array read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 121be31060
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
c9c619e667
avcodec/8bps: Check side data size before use
...
Fixes out of array read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 042faa847f
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Michael Niedermayer
48ee545d11
avformat/flvdec: Fix regression loosing streams
...
Fixes: unknown_video.flv
Found-by: Thierry Foucu <tfoucu@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 077939626e
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-17 12:47:40 +01:00
Anssi Hannula
7568b0f553
avformat/hls: Add missing error check for avcodec_parameters_copy()
...
Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi >
(cherry picked from commit e2193b53ea
)
2016-11-07 19:06:08 +02:00
Anssi Hannula
fc20e30058
avformat/hls: Fix probing mpegts audio streams that use probing
...
Commit 04964ac311
("avformat/hls: Fix missing streams in some
cases with MPEG TS") caused a regression where subdemuxer streams that
use probing (e.g. dts/eac3/mp2 in mpegts) no longer get probed properly.
This is because the codec parameters from the subdemuxer stream, once
probed, are not passed on to the main stream.
Fix that by updating the codec parameters if the codec id changes.
Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi >
(cherry picked from commit 3d2f636497
)
2016-11-07 19:06:08 +02:00
Anssi Hannula
32ceeb579e
avformat/hls: Factor copying stream info to a separate function
...
Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi >
(cherry picked from commit 9a51cd35b8
)
2016-11-07 19:06:08 +02:00
Stephen Hutchinson
ebf8ec5b0f
avisynth: fix Planar RGB output
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit bf14393635
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
n3.2
2016-10-27 17:24:04 +02:00
James Almer
548242d1a1
avcodec: remove missing incompatible_libav_abi references
...
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit bf709098c9
)
2016-10-26 17:37:10 -03:00
James Almer
e554c667bd
configure: remove missing incompatible_libav_abi references
...
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 7400f64211
)
2016-10-26 17:37:06 -03:00
James Almer
e6f35a9cd8
avformat/matroskaenc: fix cue relative position values when CRC32 is enabled
...
The dynamic buffer does not contain the CRC32 element so calls to avio_tell()
don't take it into account. This resulted in CueRelativePosition values being
six bytes short.
This is a regression since 6724525a15
Instead of adding yet another custom check for CRC32 to fix a size or an offset,
remove the existing ones and reserve the six bytes in the dynamic buffer.
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit eabbc64728
)
2016-10-26 16:30:05 -03:00
Michael Niedermayer
660229d647
Revert "Bump minor versions after 3.2 branchpoint to seperate release"
...
this should only have been on master
This reverts commit 1609935b6c
.
2016-10-26 21:22:12 +02:00
Michael Niedermayer
32860d2fb8
RELEASE_NOTES: based on 3.1
...
Name suggested by Lou and Kyle
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-10-26 21:14:02 +02:00
Michael Niedermayer
7fd15f2939
Update for 3.2
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-10-26 21:13:51 +02:00
Michael Niedermayer
1609935b6c
Bump minor versions after 3.2 branchpoint to seperate release
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-10-26 20:52:42 +02:00
Michael Niedermayer
e84d587613
Changelog: Add 3.2
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-10-26 20:52:42 +02:00
Michael Niedermayer
36ecf30cbc
doc/APIchanges: add 3.2 Cut marker
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-10-26 20:52:42 +02:00
Michael Niedermayer
3f3025205f
Bump minor versions for 3.2
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-10-26 20:52:42 +02:00
Michael Niedermayer
38e5a4f3bb
Revert "avformat/utils: Discard huge timestamps which would cause overflows if used in basic computations"
...
Some people seem to oppose this the patch seems to have been missed for a month on the ML
lets restart the discussion and solve this after the release
This reverts commit e936c8d176
.
2016-10-26 20:31:04 +02:00
Michael Niedermayer
c92f55847a
avcodec/dvdsubdec: Fix off by 1 error
...
Fixes out of array read
Found-by: Thomas Garnier using libFuzzer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-10-26 19:50:53 +02:00
Michael Niedermayer
e936c8d176
avformat/utils: Discard huge timestamps which would cause overflows if used in basic computations
...
Allowing larger timestamps makes it impossible to calculate basic things like the
difference of 2 timestamps or their sum without checking each individual computation for
overflow.
This should avoid a significant number of overflow checks
Fixes Ticket5136
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-10-26 19:46:00 +02:00
Michael Niedermayer
d88a6bedb9
avformat/isom: Fix old API regression with exporting max bitrate
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-10-26 19:46:00 +02:00