Michael Niedermayer
a6bdfd9b46
avcodec/x86/h264_weight: handle weight1=128
...
Fix ticket4596
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit e100966575
)
2015-06-19 10:34:33 +02:00
banastasov
df408d213a
avcodec/dvbsubdec: Fix buf_size check in dvbsub_parse_display_definition_segment()
...
Fixes Ticket4326
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit debf4d6e67
)
2015-06-19 10:32:20 +02:00
Michael Niedermayer
7e5a298bce
avcodec/hevc_ps: Only discard overread VPS if a previous is available
...
Fixes Ticket4621
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 57078e4d25
)
2015-06-19 10:27:32 +02:00
George Boyle
d9dd0cbe63
avcodec/flacenc: Fix Invalid Rice order
...
Fixes ticket #4628 .
The problem arose, in the sample file at least, in the last block where the
minimum and maximum Rice partition orders were both 0. In that case, and any
other where pmax == pmin, the original UINT32_MAX placeholder value for
bits[opt_porder] was getting overwritten before the comparison to check if the
current partition order is a new optimal, so the correct partition order and
RiceContext params were not being set.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 2469ed32c8
)
Conflicts:
libavcodec/flacenc.c
2015-06-19 10:26:41 +02:00
Nicolas George
1f7343c814
lavd/xcbgrab: fix comparison with screen size.
...
Signed-off-by: Nicolas George <george@nsup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 7971fa9ce0
)
2015-05-19 11:29:26 +02:00
Michael Niedermayer
af5917698b
avformat/avidec: add mp2 to the list of exceptions instead of generally treating dshow_block_align==1 special
...
Fixes Ticket4552
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 488383afd1
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
n2.6.3
2015-05-17 02:16:39 +02:00
Michael Niedermayer
b58cbb07bc
avformat/mov: Fix parsing short loci
...
Fixes Ticket4557
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 50393bce31
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-16 21:36:48 +02:00
Michael Niedermayer
dd9789ab6d
avformat/mov: Print reason of loci parsing failure
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 9e4f0cfc8f
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-16 21:36:36 +02:00
Michael Niedermayer
aded27a30b
Update for 2.6.3
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-16 00:41:10 +02:00
Michael Niedermayer
a1f68d9518
avcodec/hevc: Fix typo in num_entry_point_offsets check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 3051e7fa71
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 23:56:52 +02:00
Michael Niedermayer
2612b69d3f
avcodec/libtheoraenc: Check for av_malloc failure
...
Fixes CID1257799
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit c64b2d480b
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 23:55:29 +02:00
Michael Niedermayer
88217c40b6
avcodec/dcadec: Check active_bands
...
Fixes CID1297594 part2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit fc624ec9ba
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 20:40:26 +02:00
Michael Niedermayer
001cc6d27a
avcodec/dcadec: Check scale table index
...
Fixes CID1297594 part 1
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 0f3e6959bf
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 20:33:04 +02:00
Michael Niedermayer
ea6bd45885
avcodec/sonic: More completely check sample_rate_index and channels
...
Fixes CID1271783
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit ade8a46154
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 17:52:47 +02:00
Michael Niedermayer
51850d9a2c
avcodec/sonic: check memory allocations
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit c131a9fead
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 17:52:26 +02:00
Michael Niedermayer
211ec9196d
avcodec/smvjpegdec: check avcodec_decode_video2() return code
...
Fixes CID1271810
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit cdd25f9a3d
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 17:52:07 +02:00
Michael Niedermayer
e4318f6875
avcodec/shorten: More complete pred_order check
...
Fixes CID1239055
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 294469416d
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 17:45:06 +02:00
Michael Niedermayer
008c1debb9
avcodec/shorten: Check skip_bytes()
...
Fixes CID1210526
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit d201becfc0
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 17:44:31 +02:00
Michael Niedermayer
f33bd39d27
avcodec/shorten: Fix code depending on signed overflow behavior
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 2d15588124
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 17:41:47 +02:00
Michael Niedermayer
0337770352
avcodec/proresdec2: Reset slice_count on deallocation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit c4c6aea397
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 16:30:11 +02:00
Michael Niedermayer
ab8f686bbc
avcodec/dvbsubdec: Clear w/h/size on region buffer allocation failure
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 9f0b898e82
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:52 +02:00
Carl Eugen Hoyos
b5a942685f
lavf/matroskaenc: List subtitle codecs with fake codec_tags to allow remuxing.
...
Fixes remuxing of DVBSUB to mkv.
2015-05-15 10:04:52 +02:00
Michael Niedermayer
7e2ea1cb70
ffmpeg_opt: Fix -timestamp parsing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 107e4da476
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:52 +02:00
Michael Niedermayer
10e1108732
avcodec/dcadec: Check subsubframes
...
Fixes: CID1239152
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit a9bf628bfd
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:52 +02:00
Michael Niedermayer
3da0395b34
avcodec/dcadec: Check nchans
...
Fixes CID1239110
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit a6a45774d0
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
wm4
25d50ad814
hevc: make avcodec_decode_video2() fail if get_format() fails
...
Personally, I need the decoder to back out if get_format() returns no
usable pixel format. This didn't work because the error code was not
propagated down the call chain. This in turn happened because the
variable declaration removed in this patch shadowed the variable, whose
value is returned at the end of the function. Consequently, failures of
decode_nal_unit() were ignored in this place.
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit cc5e4bb484
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
fb564cd21d
avcodec/cavsdec: Use ff_set_dimensions()
...
Fixes CID1239111 part2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit f6b8b96607
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
10609d8864
avcodec/cavsdec: Check esc_code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 139e1c8009
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
dbc48ba1cd
avcodec/on2avc: Check run more carefully
...
Fixes CID1239106
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 22f15f5735
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
19ffa15d2d
avcodec/mpeg4audio: add some padding/alignment to MAX_PCE_SIZE
...
This avoids potential accesses over the end
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 93cfa7d169
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Rainer Hochecker
531ea97b89
swr: fix alignment issue caused by 8ch sse functions
...
Fix crash when doing 8 ch conversion from apps compiled with MSVS
Thanks to Ronald for giving this hint:
https://ffmpeg.org/pipermail/ffmpeg-devel/2015-May/173049.html
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit adb7372f74
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
0a5b242422
avcodec/mjpegdec: fix len computation in ff_mjpeg_decode_dqt()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 81cf910856
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
f43fb74ad4
avcodec/jpeg2000dec: fix boolean operator
...
Fixes CID1271791 #7-6
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit f8f155a18a
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
0463e9d6da
avcodec/hevc_ps: Explicitly check num_tile_* for negative values
...
This fixes nothing but maybe helps coverity which does not see that this is failing later
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 65e5032955
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
e8784ec5f5
avcodec/hevc_ps: Check vps_num_hrd_parameters
...
Fix CID1239052 part2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit b195aa5d52
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
0a93dc83d2
avcodec/hevc_ps: More completely check vps_num_layer_sets
...
Fixes CID1239052 part1
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 16c95b1073
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
bced2ad1bd
avcodec/hevc: Check num_entry_point_offsets
...
Fixes CID1239099 part 2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 1c6ae98d4a
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
fe22d0d7c6
avcodec/hevc: Check offset_len
...
Fixes CID1239099 part 1
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 3e9d5e16ad
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Nick Lewycky
a5167b4d66
libswscale/x86/hscale_fast_bilinear_simd.c: Include BX in the clobber list on x86_64, because it isn't implicitly included when PIC is on.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 48e9f68384
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
3123cb5d0b
avcodec/hevc_sei: Check num_sps_ids_minus1 value
...
Fixes CID1271794
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 93b0ee21a2
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
375a97bb70
avcodec/vqavideo: Check chunk size
...
Fixes CID1239154
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 8a62b80ce6
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
0fc6a95116
avformat/hevc: Check num_negative_pics and num_positive_pics
...
Fixes CID1238994
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit b62b3292d8
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
f93412406f
avformat/hevc: Check cpb_cnt_minus1
...
Fixes CID1239014
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 2cddc0b19a
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
05eddbbc05
avformat/matroskadec: Cleanup error handling for bz2 & zlib
...
Fixes CID703652
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 171af59d58
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
75b21eb8f8
avformat/nutdec: Fix use of uinitialized value
...
Fixes CID1041175
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 56abf35151
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
1933fa5daa
avformat/rtpenc_jpeg: Check remaining buffer size for SOS
...
Fixes CID1238818
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 81198a6837
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
bd05ac1df8
avformat/rtpdec_xiph: Check upper bound on len in xiph_handle_packet()
...
Larger packets are not supported and would cause problems later
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit aa5169935e
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
8d0f079c45
tools/graph2dot: use larger data types than int for array/string sizes
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit acf4925f44
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
889a4779eb
avformat/matroskaenc: Check ff_vorbiscomment_length in put_flac_codecpriv()
...
Its currently guaranteed to be smaller but its safer to check anyway
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 66f26b3e8e
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00
Michael Niedermayer
a9d3baff03
avformat/oggenc: Check ff_vorbiscomment_length in ogg_write_vorbiscomment()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 0db5b2b9f8
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-05-15 10:04:51 +02:00