Michael Niedermayer
3f8a0d5ad1
Changelog: update
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-19 01:11:57 +01:00
Michael Niedermayer
603d23ffeb
avcodec/vp8: Check for bitstream end before vp7_fade_frame()
...
Fixes: Timeout
Fixes: 5653/clusterfuzz-testcase-5497680018014208
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 de675648ce )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-18 23:28:53 +01:00
Michael Niedermayer
09dad52390
avcodec/exr: Check remaining bits in last get code loop
...
Fixes: runtime error: shift exponent -7 is negative
Fixes: 3902/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-6081926122176512
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 dd8351b118 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-17 16:11:57 +01:00
Michael Niedermayer
a3c66132d9
avutil/common: Fix integer overflow in av_clip_uint8_c() and av_clip_uint16_c()
...
Fixes: 5567/clusterfuzz-testcase-minimized-5769966247739392
Fixes: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
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 ab6f571ef7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-17 16:11:19 +01:00
Michael Niedermayer
6cfd81b04c
avcodec/h264_cabac: Tighten allowed coeff_abs range
...
Fixes: integer overflows
Reported-by: "Xiaohan Wang (王消寒)" <xhwang@chromium.org >
Based on limits in "8.5 Transform coefficient decoding process and picture
construction process prior to deblocking filter process"
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f26a63c4ee )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-15 14:09:54 +01:00
Xiaohan Wang
07e46226ae
avcodec/h264_cavlc: Set valid qscale value in ff_h264_decode_mb_cavlc()
...
When ff_h264_decode_mb_cavlc() failed due to wrong sl->qscale values,
e.g. dquant out of range, set the qscale to be a valid value before
returning -1 and exiting the function. The qscale value can be used
later e.g. in loop filter.
BUG=806122
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 71f39de2a5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-14 01:08:21 +01:00
Michael Niedermayer
d797d9f215
Changelog: Update
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-02-13 00:41:03 +01:00
Michael Niedermayer
89668fa843
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-12 03:07:59 +01:00
Michael Niedermayer
dd422f1b5e
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-12 03:07:59 +01:00
Michael Niedermayer
66f831a8d1
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-12 03:07:59 +01:00
Michael Niedermayer
c402b672b7
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-12 03:02:29 +01:00
Michael Niedermayer
263bddf781
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-12 03:02:29 +01:00
Michael Niedermayer
5b6324a94c
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-12 03:02:29 +01:00
James Almer
c95d343ae1
changelog: update with previous commit
...
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 03292829aa )
2018-01-31 22:35:13 -03:00
Luca Barbato
7a30e6448c
x264: Support version 153
...
It has native simultaneus 8 and 10 bit support.
(cherry picked from commit c6558e8840 )
(cherry picked from commit 96e8400553 )
2018-01-31 22:09:44 -03:00
Michael Niedermayer
172edcf3ba
Update for 2.8.14
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 23:47:41 +01:00
Michael Niedermayer
a0c366b1f5
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-31 23:47:16 +01:00
Michael Niedermayer
4abdd65356
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-31 23:47:16 +01:00
Aman Gupta
b40576a9a4
avcodec/hevc_ps: extract one SPS fields required for hvcC construction
...
Signed-off-by: Aman Gupta <aman@tmm1.net >
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 23:47:15 +01:00
Michael Niedermayer
b6a7dd174a
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-31 23:47:15 +01:00
Michael Niedermayer
f606a943d3
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-31 23:47:15 +01:00
Michael Niedermayer
54a7d3efc4
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-31 23:47:15 +01:00
Michael Niedermayer
ed06873b7b
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-31 23:47:15 +01:00
Michael Niedermayer
c740f585a1
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-31 23:47:15 +01:00
Michael Niedermayer
c1f7b2b6e1
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-31 23:47:15 +01:00
Michael Niedermayer
193b6df357
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-31 23:47:15 +01:00
Michael Niedermayer
25f7121c7b
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-31 23:47:15 +01:00
Michael Niedermayer
b9948d5275
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-31 23:47:15 +01:00
Michael Niedermayer
0036b62c99
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-31 23:47:15 +01:00
Michael Niedermayer
b51f1f5a19
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-31 22:56:15 +01:00
Nikolas Bowe
3e499537a4
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-31 22:56:15 +01:00
Nikolas Bowe
5971f1941b
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-31 22:56:15 +01:00
Carl Eugen Hoyos
10ed2f1972
configure: bump year
...
Happy new year!
(cherry picked from commit bddf31ba75 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:15 +01:00
Michael Niedermayer
74aeeb223a
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-31 22:56:15 +01:00
Michael Niedermayer
82fb8dc076
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-31 22:56:15 +01:00
Michael Niedermayer
2885e45eb4
avcodec/dirac_dwt: Fix overflows in COMPOSE_HAARiH0/COMPOSE_HAARiL0
...
Fixes: 4830/clusterfuzz-testcase-minimized-5255392054476800
Fixes: signed integer overflow: 2147483646 - -7 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 0e62a23734 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:15 +01:00
Michael Niedermayer
c65c4c4759
avcodec/diracdec: Fix integer overflow with quant
...
Fixes: signed integer overflow: 2 + 2147483646 cannot be represented in type 'int'
Fixes: 4792/clusterfuzz-testcase-minimized-6322450775146496
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 eaa9317589 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:15 +01:00
Michael Niedermayer
c860d5326f
avcodec/opus_parser: Check payload_len in parse_opus_ts_header()
...
Fixes: clusterfuzz-testcase-minimized-6134545979277312
Fixes: crbug 797469
Reported-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1bcd7fefcb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:15 +01:00
Michael Niedermayer
a15c056f5c
avcodec/jpeg2000dsp: Fix integer overflows in ict_int()
...
Fixes: signed integer overflow: 46802 * -71230 cannot be represented in type 'int'
Fixes: 4756/clusterfuzz-testcase-minimized-4812495563784192
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 b3192c64b5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:15 +01:00
Michael Niedermayer
761362fffb
avcodec/h264_slice: Do not attempt to render into frames already output
...
Fixes: null pointer dereference
Fixes: 4698/clusterfuzz-testcase-minimized-5096956322906112
This testcase does not reproduce the issue before 03b82b3ab9
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 476665d4de )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:15 +01:00
Michael Niedermayer
0abf465dc5
avcodec/exr: Check buf_size more completely
...
Fixes: Out of heap array read
Fixes: 4683/clusterfuzz-testcase-minimized-6152313673613312
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 903be5e4f6 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:15 +01:00
Michael Niedermayer
2a53778676
avcodec/flacdec: Fix overflow in multiplication in decode_subframe_fixed()
...
Fixes: signed integer overflow: 2 * 1629495328 cannot be represented in type 'int'
Fixes: 4716/clusterfuzz-testcase-minimized-5835915940331520
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 3d23f7a096 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:15 +01:00
Michael Niedermayer
aae8ea9c18
avcodec/hevcdsp_template: Fix Invalid shifts in put_hevc_qpel_bi_w_h() and put_hevc_qpel_bi_w_w()
...
Fixes: left shift of negative value -1
Fixes: 4690/clusterfuzz-testcase-minimized-6117482428366848
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 d135f3c514 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:15 +01:00
Michael Niedermayer
59e3f49ef0
avcodec/flacdec: avoid undefined shift
...
Fixes: shift exponent 32 is too large for 32-bit type 'unsigned int'
Fixes: 4688/clusterfuzz-testcase-minimized-6572210748653568
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 560daf8891 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:15 +01:00
Michael Niedermayer
789157fdde
avcodec/hevcdsp_template.c: Fix undefined shift in FUNC(dequant)
...
Fixes: runtime error: left shift of negative value -180
Fixes: 4626/clusterfuzz-testcase-minimized-5647837887987712
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 0c9ab5ef9c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:15 +01:00
Michael Niedermayer
d0967e3faf
avcodec/dirac_dwt: Fix integer overflow in COMPOSE_DD97iH0() and COMPOSE_DD137iL0()
...
Fixes: runtime error: signed integer overflow: 2147483646 + 33554433 cannot be represented in type 'int'
Fixes: 4563/clusterfuzz-testcase-minimized-5438979567517696
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 4d70fbeec8 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
4eb24ae083
avcodec/hevc_cabac: Fix integer overflow in ff_hevc_cu_qp_delta_abs()
...
Fixes: signed integer overflow: 2147483647 + 1073741824 cannot be represented in type 'int'
Fixes: 4555/clusterfuzz-testcase-minimized-4505532481142784
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 0ee143558d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
f75e2cb059
avcodec/hevc_sei: Fix integer overflows in decode_nal_sei_message()
...
Fixes: signed integer overflow: 2147483520 + 255 cannot be represented in type 'int'
Fixes: 4554/clusterfuzz-testcase-minimized-4843714515042304
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 991ef6e5b9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
d1af42e4b2
avcodec/hevcdsp_template: Fix undefined shift in put_hevc_qpel_bi_w_hv()
...
Fixes: runtime error: left shift of negative value -3
Fixes: 4524/clusterfuzz-testcase-minimized-6055590120914944
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 439fbb9c8b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Kelly Ledford
b6731e87c8
libavfilter/af_dcshift.c: Fixed repeated spelling error
...
'threshhold' should be 'threshold'
Signed-off-by: Kelly Ledford <kelly.ledford@intel.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit bc219082bb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Jun Zhao
15df68bf50
avfilter/formats: fix wrong function name in error message
...
Use perdefined micro __FUNCTION__ rather than hard coding function name
to fix wrong function name in error message.
Signed-off-by: Jun Zhao <jun.zhao@intel.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4280948702 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
f4cce67dca
avcodec/amrwbdec: Fix division by 0 in voice_factor()
...
The added value matches "Digital cellular telecommunications system (Phase 2+) (GSM); Universal Mobile Telecommunications System (UMTS); LTE; Extended Adaptive Multi-Rate - Wideband (AMR-WB+) codec; Floating-point ANSI-C code (3GPP TS 26.304 version 14.0.0 Release 14)
Extended Adaptive Multi-Rate - Wideband (AMR-WB+) codec; Floating-point ANSI-C code"
Fixes: runtime error: division by zero
Fixes: 4415/clusterfuzz-testcase-minimized-4677752314658816
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 1d0817d56b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
2bffe4613e
avcodec/dirac_dwt: Fix integer overflows in COMPOSE_DAUB97*
...
Fixes: 4478/clusterfuzz-testcase-minimized-4752113767809024
Fixes: runtime error: signed integer overflow: -2147483626 + -319489 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 5e9a13a5a3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Dale Curtis
9166e6abd6
avcodec/vorbis: Fix another 1 << 31 > int32_t::max() with 1u.
...
Didn't notice this one when 9648cc6d was landed.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 95bacb521a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Dale Curtis
8bea0c307d
Don't manipulate duration when it's AV_NOPTS_VALUE.
...
This leads to signed integer overflow.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit c5fd57f483 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Dale Curtis
1bc4e743f5
avcodec/vorbis: 1 << 31 > int32_t::max(), so use 1u << 31 instead.
...
Signed-off-by: Dale Curtis <dalecurtis@chromium.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9648cc6d7f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Dale Curtis
2543475730
avformat/utils: Prevent undefined shift with wrap_bits > 64.
...
2LL << (wrap_bits=64 - 1) does not fit in int64_t; change the
code to use a uint64_t (2ULL) and add an av_assert2() to
ensure wrap_bits <= 64.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 03fbc0daa7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
cf32c814ed
avcodec/j2kenc: Fix out of array access in encode_cblk()
...
Fixes: 4427/clusterfuzz-testcase-minimized-5106919271301120
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 0674087004 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
2f7cced9bb
avcodec/hevcdsp_template: Fix undefined shift in put_hevc_epel_bi_w_h()
...
Fixes: runtime error: left shift of negative value -127
Fixes: 4397/clusterfuzz-testcase-minimized-4779061080489984
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 0409d33311 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
6011422a54
avcodec/mlpdsp: Fix signed integer overflow, 2nd try
...
The outputted bits should match what is used in the lossless check
Fixes: runtime error: signed integer overflow: -538697856 * 256 cannot be represented in type 'int'
Fixes: 4326/clusterfuzz-testcase-minimized-5689449645080576
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 97c00edaa0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
32a92a7a9b
avcodec/kgv1dec: Check that there is enough input for maximum RLE compression
...
Fixes: Timeout
Fixes: 4271/clusterfuzz-testcase-4676667768307712
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 3aad94bf2b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
74d467baa4
avcodec/dirac_dwt: Fix integer overflow in COMPOSE_FIDELITYi*
...
Fixes: runtime error: signed integer overflow: -2143827186 - 7404944 cannot be represented in type 'int'
Fixes: 4354/clusterfuzz-testcase-minimized-4671122764201984
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 2b6964f764 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
ea24e70a6a
avcodec/mpeg4videodec: Check also for negative versions in the validity check
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0e7865ce41 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Dale Curtis
ee13d847a4
Close ogg stream upon error when using AV_EF_EXPLODE.
...
Without this there can be multiple memory leaks for unrecognized
ogg streams.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit bce8fc0754 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Dale Curtis
78782ca62d
Fix undefined shift on assumed 8-bit input.
...
decode_user_data() attempts to create an integer |build|
value with 8 bits of spacing for 3 components. However
each component is an int32_t, so shifting each component
is undefined for values outside of the 8 bit range.
This patch simply clamps input to 8-bits per component
and prints out a warning that the values were clamped.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7010dd98b5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Jacob Trimble
514bdaafb4
avformat/mov: Propagate errors in mov_switch_root.
...
Signed-off-by: Jacob Trimble <modmaker@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2d9cf3bf16 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
107606260c
avcodec/hevcdsp_template: Fix invalid shift in put_hevc_epel_bi_w_v()
...
Fixes: runtime error: left shift of negative value -255
Fixes: 4037/clusterfuzz-testcase-minimized-5290998163832832
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 7d88586e47 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
4e5351940f
avcodec/mlpdsp: Fix undefined shift ff_mlp_pack_output()
...
Fixes: runtime error: left shift of negative value -7862264
Fixes: 4074/clusterfuzz-testcase-minimized-4516104123711488
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 4f7f70738e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
90ad2798ae
avcodec/zmbv: Check that the buffer is large enough for mvec
...
Fixes: Timeout
Fixes: 4143/clusterfuzz-testcase-4736864637419520
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 2ab9568a2c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
813d7f4972
avcodec/dirac_dwt: Fix integer overflow in COMPOSE_DD137iL0()
...
Fixes: 4035/clusterfuzz-testcase-minimized-6479308925173760
Fixes: runtime error: signed integer overflow: 9 * 402653183 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 73964680d7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
ee54354fcd
avcodec/wmv2dec: Check end of bitstream in parse_mb_skip() and ff_wmv2_decode_mb()
...
Fixes: Timeout
Fixes: 3200/clusterfuzz-testcase-5750022136135680
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 65e0a7c473 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
20d6a6fa5a
avcodec/snowdec: Check for remaining bitstream in decode_blocks()
...
Fixes: Timeout
Fixes: 3142/clusterfuzz-testcase-5007853163118592
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 4527ec2216 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
7d6319e5e6
avcodec/snowdec: Check intra block dc differences.
...
Fixes: Timeout
Fixes: 3142/clusterfuzz-testcase-5007853163118592
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 c3b9bbcc6e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Fredrik Hubinette
c11ac27f49
avformat/mov: Check size of STSC allocation
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a6fdd75fe6 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
0af4a5b180
avcodec/h264dec: Fix potential array overread
...
add padding before scantable arrays
See: 522d850e68
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 380b48fb9f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
0a9e416a19
avcodec/x86/mpegvideodsp: Fix signedness bug in need_emu
...
Fixes: out of array read
Fixes: 3516/attachment-311488.dat
Found-by: Insu Yun, Georgia Tech.
Tested-by: wuninsu@gmail.com
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 58cf31cee7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
b0c2e6e2d2
avcodec/aacdec_fixed: Fix undefined shift
...
Fixes: runtime error: left shift of negative value -801112064
Fixes: 3492/clusterfuzz-testcase-minimized-5784775283441664
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 fca198fb5b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
cd01fc76c4
avcodec/mdct_*: Fix integer overflow in addition in RESCALE()
...
Fixes: runtime error: signed integer overflow: 1219998458 - -1469874012 cannot be represented in type 'int'
Fixes: 3443/clusterfuzz-testcase-minimized-5369987105554432
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 770c934fa1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
7de06077c9
avcodec/snowdec: Fix integer overflow in header parsing
...
Fixes: 3984/clusterfuzz-testcase-minimized-5265759929368576
Fixes: runtime error: signed integer overflow: -1085585801 + -1094995529 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 c897a92858 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
d8fb143546
avcodec/cngdec: Fix integer clipping
...
Fixes: runtime error: value -36211.7 is outside the range of representable values of type 'short'
Fixes: 2992/clusterfuzz-testcase-6649611793989632
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 51090133b3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
efe9439caa
avcodec/sbrdsp_fixed: Fix integer overflow in shift in sbr_hf_g_filt_c()
...
Fixes: runtime error: shift exponent 66 is too large for 64-bit type 'long long'
Fixes: 3642/clusterfuzz-testcase-minimized-5443853801750528
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 981e99ab99 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
fd1854647b
avutil/softfloat: Add FLOAT_MIN
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
92eff6b829
avcodec/aacsbr_fixed: Fix division by zero in sbr_gain_calc()
...
Fixes: 3642/clusterfuzz-testcase-minimized-5443853801750528
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 7d1dec4668 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
b75eb7f8d5
avcodec/h264idct_template: Fix integer overflows in ff_h264_idct8_add()
...
Fixes: runtime error: signed integer overflow: -503316480 + -2013265038 cannot be represented in type 'int'
Fixes: 3805/clusterfuzz-testcase-minimized-6578427831255040
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 e131b8cedb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
1376beb658
avcodec/xan: Check for bitstream end in xan_huffman_decode()
...
Fixes: Timeout
Fixes: 3707/clusterfuzz-testcase-6465922706440192
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 4b51437dcc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Luca Barbato
907a704c9f
avformat: Free the internal codec context at the end
...
Avoid a use after free in avformat_find_stream_info.
(cherry picked from commit 9e4a5eb51b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
35c1e95b41
avcodec/xan: Improve overlapping check
...
Fixes: memcpy-param-overlap
Fixes: 3612/clusterfuzz-testcase-minimized-6393461273001984
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 e8fafef1db )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
9d4ad2dbfd
avcodec/aacdec_fixed: Fix integer overflow in apply_dependent_coupling_fixed()
...
Fixes: runtime error: signed integer overflow: 623487 * 536870912 cannot be represented in type 'int'
Fixes: 3594/clusterfuzz-testcase-minimized-4650622935629824
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 41d96af2a7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
9ef0472b26
avcodec/aacdec_fixed: Fix integer overflow in predict()
...
Fixes: runtime error: signed integer overflow: -2110708110 + -82837504 cannot be represented in type 'int'
Fixes: 3547/clusterfuzz-testcase-minimized-6009386439802880
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 0976752420 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
9ba9c5a16f
avcodec/jpeglsdec: Check for end of bitstream in ls_decode_line()
...
Fixes: 1773/clusterfuzz-testcase-minimized-4832523987189760
Fixes: Timeout
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 f80224ed19 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
3fc5451f40
avcodec/jpeglsdec: Check ilv for being a supported value
...
Fixes: 1773/clusterfuzz-testcase-minimized-4832523987189760
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 fe533628b9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
c48262d857
avcodec/snowdec: Check mv_scale
...
Fixes: runtime error: signed integer overflow: 2 * -1094995530 cannot be represented in type 'int'
Fixes: 3512/clusterfuzz-testcase-minimized-4812747210489856
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 393d6fc739 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
c9298f5d02
avcodec/pafvideo: Check for bitstream end in decode_0()
...
Fixes: Timeout
Fixes: 3529/clusterfuzz-testcase-5057068371279872
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 9c85329cd0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
f62201d550
avcodec/ffv1dec: Fix out of array read in slice counting
...
Fixes: test-201710.mp4
Found-by: 连一汉 <lianyihan@360.cn > and Zhibin Hu
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c20f4fcb74 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
23ea9f91c0
avcodec/dirac_dwt: Fix integer overflow in COMPOSE_53iL0()
...
Fixes: runtime error: signed integer overflow: 2147483646 + 2 cannot be represented in type 'int'
Fixes: 3485/clusterfuzz-testcase-minimized-4940429332054016
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 bdee75a4e7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
0d9baa6d16
avcodec/mpeg_er: Clear mcsel in mpeg_er_decode_mb()
...
Fixes out of array read
Should fix: 3516/clusterfuzz-testcase-minimized-4608518562775040 (not reprodoceable)
Found-by: Insu Yun, Georgia Tech.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 127a362630 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
fd21cec8a9
avcodec/mpeg4videodec: Use 64 bit intermediates for sprite delta
...
Fixes: runtime error: signed integer overflow: -104713 * 65536 cannot be represented in type 'int'
Fixes: 3453/clusterfuzz-testcase-minimized-5555554657239040
Fixes: 3528/clusterfuzz-testcase-minimized-6283628420005888
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 e38f280fec )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
3929105913
avcodec/truemotion2: Fix integer overflows in tm2_high_chroma()
...
Fixes: runtime error: signed integer overflow: -1408475220 + -1408475220 cannot be represented in type 'int'
Fixes: 3336/clusterfuzz-testcase-minimized-5656839179993088
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 44874b4f5e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
1ad7bbfd21
avcodec/aacdec_template: Clear tns present flag on error
...
Fixes: 3444/clusterfuzz-testcase-minimized-6270352105668608
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 dcf9bae4a9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
df66540dd5
avcodec/proresdec2: SKIP_BITS() does not work with len=32
...
Fixes: invalid shift
Fixes: 3482/clusterfuzz-testcase-minimized-5446915875405824
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 c37138e01a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
c665a93438
avcodec/hevcdsp_template: Fix undefined shift
...
Fixes: runtime error: left shift of negative value -255
Fixes: 3373/clusterfuzz-testcase-minimized-5604083912146944
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 fbdab6eca7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
6d03495c70
avcodec/jpeg2000: Check that codsty->log2_prec_widths/heights has been initialized
...
Fixes: OOM
Fixes: 2225/clusterfuzz-testcase-minimized-5505632079708160
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 64e034da95 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
13d16a7b99
avcodec/takdec: Fix integer overflow in decode_lpc()
...
Fixes: runtime error: signed integer overflow: 16748560 + 2143729712 cannot be represented in type 'int'
Fixes: 3202/clusterfuzz-testcase-minimized-4988291642294272
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 5d31f03a02 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
66fd3de40a
avcodec/proresdec2: Check bits in DECODE_CODEWORD(), fixes invalid shift
...
Fixes: runtime error: shift exponent 42 is too large for 32-bit type 'unsigned int'
Fixes: 3410/clusterfuzz-testcase-minimized-5313377960198144
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 4f5eaf0b59 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
a0f854b5ff
avcodec/takdec: Fix integer overflows in decode_subframe()
...
Fixes: runtime error: signed integer overflow: -1562477869 + -691460395 cannot be represented in type 'int'
Fixes: 3196/clusterfuzz-testcase-minimized-4528307146063872
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 3dabb9c69d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
ed5d0bc237
avcodec/dirac_dwt: Fix integer overflow in COMPOSE_FIDELITYi*()
...
Fixes: runtime error: signed integer overflow: 161 * 13872281 cannot be represented in type 'int'
Fixes: 3295/clusterfuzz-testcase-minimized-4738998142500864
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 67da2685e0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
104d36647c
avcodec/ffv1dec: Fix integer overflow in read_quant_table()
...
Fixes: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
Fixes: 3361/clusterfuzz-testcase-minimized-5065842955911168
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 d00fc952b6 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
a2d129a841
avcodec/svq3: Fix overflow in svq3_add_idct_c()
...
Fixes: runtime error: signed integer overflow: 2147392585 + 524288 cannot be represented in type 'int'
Fixes: 3348/clusterfuzz-testcase-minimized-4809500517203968
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 2c933c5168 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
fd0b42344a
avcodec/pngdec: Clean up on av_frame_ref() failure
...
Fixes: memleak
Fixes: 3203/clusterfuzz-testcase-minimized-4514553595428864
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: James Almer <jamrial@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5480e82d77 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
a93bbd8aa3
avcodec/jpeg2000dsp: Fix multiple integer overflows in ict_int()
...
Fixes: runtime error: signed integer overflow: 22553 * -188962 cannot be represented in type 'int'
Fixes: 3042/clusterfuzz-testcase-minimized-5174210131394560
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 2d025e7428 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
f51fc65d66
avcodec/hevcdsp_template: Fix undefined shift in put_hevc_pel_bi_w_pixels
...
Fixes: runtime error: left shift of negative value -95
Fixes: 3077/clusterfuzz-testcase-minimized-4684917524922368
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 c225da68cf )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
18e1ef489a
avcodec/diracdec: Fix overflow in DC computation
...
Fixes: runtime error: signed integer overflow: 11896 + 2147483646 cannot be represented in type 'int'
Fixes: 3053/clusterfuzz-testcase-minimized-6355082062856192
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 b5995856a4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
fa65598309
avformat/asfdec: Fix DoS in asf_build_simple_index()
...
Fixes: Missing EOF check in loop
No testcase
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit afc9c683ed )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
dc4ef664ab
avformat/mov: Fix DoS in read_tfra()
...
Fixes: Missing EOF check in loop
No testcase
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9cb4eb7728 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
Michael Niedermayer
812e06cc82
avcodec/dirac_dwt: Fix multiple overflows in 9/7 lifting
...
Fixes: runtime error: signed integer overflow: 1073901567 + 1073901567 cannot be represented in type 'int'
Fixes: 3124/clusterfuzz-testcase-minimized-454643435752652
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 f71cd44147 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-01-31 22:56:14 +01:00
James Almer
a1433196b8
avformat/libssh: check the user provided a password before trying to use it
...
Fixes ticket #6413
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 8ddb6820bd )
2018-01-11 10:42:34 -03:00
Michael Niedermayer
7f0359f05e
Changelog: Update
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-02 02:16:08 +02:00
孙浩(晓黑)
d686026507
avformat/mxfdec: Fix Sign error in mxf_read_primer_pack()
...
Fixes: 20170829B.mxf
Co-Author: 张洪亮(望初)" <wangchu.zhl@alibaba-inc.com >
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9d00fb9d70 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-01 03:20:54 +02:00
孙浩(晓黑)
accf7d34a8
avformat/mxfdec: Fix DoS issues in mxf_read_index_entry_array()
...
Fixes: 20170829A.mxf
Co-Author: 张洪亮(望初)" <wangchu.zhl@alibaba-inc.com >
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 900f39692c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-01 03:04:25 +02:00
孙浩(晓黑)
5b3986023b
avformat/nsvdec: Fix DoS due to lack of eof check in nsvs_file_offset loop.
...
Fixes: 20170829.nsv
Co-Author: 张洪亮(望初)" <wangchu.zhl@alibaba-inc.com >
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c24bcb5536 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-09-01 03:03:44 +02:00
Michael Niedermayer
74429912dc
avcodec/snowdec: Fix integer overflow in decode_subband_slice_buffered()
...
Fixes: runtime error: signed integer overflow: 267 * 8388608 cannot be represented in type 'int'
Fixes: 2743/clusterfuzz-testcase-minimized-5820652076400640
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 732f976456 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-29 21:21:06 +02:00
Michael Niedermayer
1a5b9b3b8e
avcodec/hevc_ps: Fix undefined shift in pcm code
...
Fixes: runtime error: shift exponent -1 is negative
Fixes: 3091/clusterfuzz-testcase-minimized-6229767969832960
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 2a83866c9f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-29 21:20:50 +02:00
Michael Niedermayer
2ff2402c65
avcodec/sbrdsp_fixed: Fix undefined overflows in autocorrelate()
...
Fixes: runtime error: signed integer overflow: 8903997421129740175 + 354481484684609529 cannot be represented in type 'long'
Fixes: 2045/clusterfuzz-testcase-minimized-6751255865065472
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 eefb68c9c3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-28 01:44:23 +02:00
Michael Niedermayer
6b004e23d7
avformat/mvdec: Fix DoS due to lack of eof check
...
Fixes: loop.mv
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4f05e2e2dc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-28 01:43:29 +02:00
孙浩 and 张洪亮(望初)
1720050ae6
avformat/rl2: Fix DoS due to lack of eof check
...
Fixes: loop.rl2
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 96f24d1bee )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-28 01:43:04 +02:00
孙浩 and 张洪亮(望初)
c70fdd9948
avformat/cinedec: Fix DoS due to lack of eof check
...
Fixes: loop.cine
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7e80b63ecd )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-28 01:42:24 +02:00
孙浩 and 张洪亮(望初)
6904464301
avformat/asfdec: Fix DoS due to lack of eof check
...
Fixes: loop.asf
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7f9ec5593e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-28 01:42:00 +02:00
Michael Niedermayer
498e07daa1
avformat/hls: Fix DoS due to infinite loop
...
Fixes: loop.m3u
The default max iteration count of 1000 is arbitrary and ideas for a better solution are welcome
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Previous version reviewed-by: Steven Liu <lingjiujianke@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7ec414892d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-28 01:41:37 +02:00
Michael Niedermayer
bc57c79970
Update for FFmpeg 2.8.13
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-24 14:42:03 +02:00
Michael Niedermayer
49839ae013
ffprobe: Fix NULL pointer handling in color parameter printing
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 351e28f9a7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-24 12:49:30 +02:00
Michael Niedermayer
c1a9f5675b
ffprobe: Fix null pointer dereference with color primaries
...
Found-by: AD-lab of venustech
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 837cb4325b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b2c39fcc3c0749490dc93bca80f56724878b55fe)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-24 12:28:16 +02:00
Michael Niedermayer
ae37bbef43
avcodec/hevc_ps: Check delta_pocs in ff_hevc_decode_short_term_rps()
...
Fixes: integer overflow
Fixes: 2893/clusterfuzz-testcase-minimized-5809330567774208
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 2b44dcbc44 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-24 12:10:33 +02:00
Vitaly Buka
eaf231544f
avformat/aviobuf: Fix signed integer overflow in avio_seek()
...
Signed integer overflow is undefined behavior.
Detected with clang and -fsanitize=signed-integer-overflow
Signed-off-by: Vitaly Buka <vitalybuka@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit eca2a49716 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-24 12:08:07 +02:00
Vitaly Buka
05fc22f9f6
avformat/mov: Fix signed integer overflows with total_size
...
Signed integer overflow is undefined behavior.
Detected with clang and -fsanitize=signed-integer-overflow
Signed-off-by: Vitaly Buka <vitalybuka@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4a404cb5b9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-24 12:03:52 +02:00
Michael Niedermayer
cab75cde01
avcodec/aacdec_template: Fix running cleanup in decode_ics_info()
...
Fixes: out of array read
Fixes: 2873/clusterfuzz-testcase-minimized-5924145713905664
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Previous version reviewed-by: Alex Converse <alex.converse@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6f03ffb47d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-23 04:03:16 +02:00
Michael Niedermayer
079849f40c
avcodec/me_cmp: Fix crashes on ARM due to misalignment
...
Adds a diff_pixels_unaligned()
Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872503
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit bc488ec28a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-21 23:27:35 +02:00
Michael Niedermayer
0b37ae2ae4
avcodec/fic: Fixes signed integer overflow
...
Fixes: runtime error: signed integer overflow: 1037142357 + 1227025305 cannot be represented in type 'int'
Fixes: 3024/clusterfuzz-testcase-minimized-5885660323905536
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 0c9d5b015c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-21 23:27:35 +02:00
Michael Niedermayer
7829a712bb
avcodec/snowdec: Fix off by 1 error
...
Fixes: runtime error: index 4 out of bounds for type 'int8_t [4]'
Fixes: 3023/clusterfuzz-testcase-minimized-6421736130084864
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 d132683ddd )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-21 23:27:35 +02:00
Michael Niedermayer
b463a03476
avcodec/diracdec: Check perspective_exp and zrs_exp.
...
Fixes: undefined shift
Fixes: runtime error: shift exponent 264 is too large for 32-bit type 'int'
Fixes: 2860/clusterfuzz-testcase-minimized-4672811689836544
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 1e6cab8745 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-17 00:27:32 +02:00
Michael Niedermayer
96cf249751
avcodec/mpeg4videodec: Clear mcsel before decoding an image
...
Fixes: runtime error: signed integer overflow: 2146467840 + 1032192 cannot be represented in type 'int'
Fixes: 2826/clusterfuzz-testcase-minimized-5901511613743104
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 7735ed2974 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-13 01:07:21 +02:00
Michael Niedermayer
30a2c1a1b8
avcodec/dirac_dwt: Fixes integer overflows in COMPOSE_DAUB97*
...
Fix multiple: runtime error: signed integer overflow: 6497 * 3409630 cannot be represented in type 'int'
Fixes: 2819/clusterfuzz-testcase-minimized-4743700301217792
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 a5380f9c1c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-08 19:38:10 +02:00
Michael Niedermayer
5f44aa14dd
avcodec/aacdec_fixed: fix invalid shift in predict()
...
Fixes: runtime error: shift exponent -2 is negative
Fixes: 2818/clusterfuzz-testcase-minimized-5062943676825600
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 1e443051b2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-08 19:37:43 +02:00
Michael Niedermayer
f236601e29
avcodec/h264_slice: Fix overflow in slice offset
...
Fixes: runtime error: signed integer overflow: 1610612736 * 2 cannot be represented in type 'int'
Fixes: 2817/clusterfuzz-testcase-minimized-5289691240726528
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 1f53bde6d8 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-08 19:37:25 +02:00
Steven Siloti
f0f45d8404
avformat/utils: fix memory leak in avformat_free_context
...
The pointer to the packet queue is stored in the internal structure
so the queue needs to be flushed before internal is freed.
Signed-off-by: Steven Siloti <ssiloti@bittorrent.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 949debd1d1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-08-05 23:25:05 +02:00
Michael Niedermayer
9d0eb81cb8
avcodec/dirac_dwt: Fix multiple integer overflows in COMPOSE_DD97iH0()
...
Fixes: runtime error: signed integer overflow: 9 * 335544320 cannot be represented in type 'int'
Fixes: 2739/clusterfuzz-testcase-minimized-6737297955356672
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 bf8ab72ae9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-29 19:13:21 +02:00
Michael Niedermayer
95bbbbd14e
avcodec/diracdec: Fix integer overflow in divide3()
...
Fixes: runtime error: signed integer overflow: -1073746548 * 21845 cannot be represented in type 'int'
Fixes: 2729/clusterfuzz-testcase-minimized-5902915464069120
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 c0220c768c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-29 14:23:26 +02:00
Michael Niedermayer
406d9fdd13
avcodec/takdec: Fix integer overflow in decode_subframe()
...
Fixes: runtime error: signed integer overflow: -536870912 - 1972191120 cannot be represented in type 'int'
Fixes: 2711/clusterfuzz-testcase-minimized-4975142398590976
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 2c630d159f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-29 14:18:36 +02:00
Michael Niedermayer
8f9cbb3b7e
avformat/rtmppkt: Convert ff_amf_get_field_value() to bytestream2
...
Fixes: out of array accesses
Found-by: JunDong Xie of Ant-financial Light-Year Security Lab
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ffcc82219c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-29 14:17:59 +02:00
Michael Niedermayer
b566ab49ca
avformat/rtmppkt: Convert ff_amf_tag_size() to bytestream2
...
Fixes: out of array accesses
Fixes: crash-9238fa9e8d4fde3beda1f279626f53812cb001cb-SEGV
Found-by: JunDong Xie of Ant-financial Light-Year Security Lab
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 08c073434e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-29 04:49:47 +02:00
Michael Niedermayer
58ce199aba
avcodec/hevc_ps: fix integer overflow in log2_parallel_merge_level_minus2
...
Fixes: runtime error: signed integer overflow: -2147483647 - 2 cannot be represented in type 'int'
Fixes: 2702/clusterfuzz-testcase-minimized-4511932591636480
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 74c1c22d7f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-26 17:25:20 +02:00
Michael Niedermayer
490b6599bb
avformat/oggparsecelt: Do not re-allocate os->private
...
Fixes: double free
Fixes: clusterfuzz-testcase-minimized-5080550145785856
Found-by: ClusterFuzz
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7140761481 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-26 00:22:55 +02:00
Michael Niedermayer
91442fdc1c
avcodec/aacps: Fix multiple integer overflow in map_val_34_to_20()
...
Fixes: avcodec/aacps.c:511:40: runtime error: signed integer overflow: 1509077651 + 758068176 cannot be represented in type 'int'
Fixes: 2678/clusterfuzz-testcase-minimized-4702787684270080
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 0764fe1d09 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-26 00:14:04 +02:00
Michael Niedermayer
56e2ec0e9f
avcodec/aacdec_fixed: fix: left shift of negative value -1
...
Fixes: 2699/clusterfuzz-testcase-minimized-5631303862976512
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 2dfb8c4178 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-26 00:11:56 +02:00
Brice Waegeneire
061be75481
doc/filters: typo in frei0r
...
Signed-off-by: Brice Waegeneire <brice.wge@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6a6eec485d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-23 15:01:05 +02:00
Michael Niedermayer
1b1abf077d
avcodec/aacdec_template (fixed point): Check gain in decode_cce() to avoid undefined shifts later
...
Fixes: runtime error: shift exponent 47 is too large for 32-bit type 'int'
Fixes: 2581/clusterfuzz-testcase-minimized-4681474395602944
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 2886142e0c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-19 04:03:11 +02:00
Michael Niedermayer
a84ed3d011
avcodec/mjpegdec: Clip DC also on the negative side.
...
Fixes: runtime error: signed integer overflow: -16711425 + -2130772346 cannot be represented in type 'int'
Fixes: 2533/clusterfuzz-testcase-minimized-5372857678823424
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 c28f648b19 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-19 03:48:01 +02:00
Michael Niedermayer
080d6de9df
avcodec/aacps (fixed point): Fix multiple signed integer overflows
...
Fixes: runtime error: signed integer overflow: 1421978265 - -1810326882 cannot be represented in type 'int'
Fixes: 2527/clusterfuzz-testcase-minimized-5260915396050944
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 80b9e40b6f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-19 03:47:46 +02:00
Michael Niedermayer
82ba7646c2
avcodec/sbrdsp_fixed: Fix integer overflow in sbr_hf_apply_noise()
...
Fixes: runtime error: signed integer overflow: -2049425300 + -117591631 cannot be represented in type 'int'
Fixes: part of 2096/clusterfuzz-testcase-minimized-4901566068817920
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 2061de8a3f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-19 03:39:54 +02:00
Michael Niedermayer
610bd59522
avcodec/wavpack: Fix invalid shift
...
Fixes: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
Fixes: 2377/clusterfuzz-testcase-minimized-6108505935183872
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 c07af72098 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-19 02:50:35 +02:00
Michael Niedermayer
a5e969dd28
avcodec/hevc_ps: Fix integer overflow with beta/tc offsets
...
Fixes: runtime error: signed integer overflow: 2113929216 * 2 cannot be represented in type 'int'
Fixes: 2422/clusterfuzz-testcase-minimized-5242114713583616
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 de54a37c1d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-19 02:50:01 +02:00
Michael Niedermayer
f6954a1482
avcodec/vb: Check vertical GMC component before multiply
...
Fixes: runtime error: signed integer overflow: 8224 * 663584 cannot be represented in type 'int'
Fixes: 2393/clusterfuzz-testcase-minimized-6128334993883136
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 bc6ab72bc7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-19 02:48:40 +02:00
Michael Niedermayer
a6e90e5998
avcodec/jpeg2000dwt: Fix integer overflow in dwt_decode97_int()
...
Fixes: runtime error: signed integer overflow: -163654656 * 256 cannot be represented in type 'int'
Fixes: 2367/clusterfuzz-testcase-minimized-4648678897745920
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 ea5366670e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-19 02:45:52 +02:00
Michael Niedermayer
bbcb59b948
avcodec/apedec: Fix integer overflow
...
Fixes: out of array access
Fixes: PoC.ape and others
Found-by: Bingchang, Liu@VARAS of IIE
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ba4beaf614 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-07-16 17:02:32 +02:00
Michael Niedermayer
bd33b15fe6
avcodec/wavpack: Fix integer overflow in wv_unpack_stereo()
...
Fixes: runtime error: signed integer overflow: 2080374785 + 2080374784 cannot be represented in type 'int'
Fixes: 2351/clusterfuzz-testcase-minimized-5359403240783872
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 73ea2a028e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-25 02:52:42 +02:00
Michael Niedermayer
7ee48d9de1
avcodec/mpeg4videodec: Fix GMC with videos of dimension 1
...
Fixes: runtime error: shift exponent -1 is negative
Fixes: 2338/clusterfuzz-testcase-minimized-5153426541379584
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 4976a3411f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-25 02:48:02 +02:00
Michael Niedermayer
fe74c2364e
avcodec/wavpack: Fix integer overflow
...
Fixes: runtime error: signed integer overflow: 227511904 + 1964113935 cannot be represented in type 'int'
Fixes: 2331/clusterfuzz-testcase-minimized-6182185830711296
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 24e95f9d4d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-23 03:05:56 +02:00
Michael Niedermayer
7fadd9625f
avcodec/takdec: Fix integer overflow
...
Fixes: runtime error: signed integer overflow: 512 + 2147483146 cannot be represented in type 'int'
Fixes: 2314/clusterfuzz-testcase-minimized-4519333877252096
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 0c2ef4f6b4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-23 03:05:45 +02:00
Michael Niedermayer
be92b27024
avcodec/tiff: Update pointer only when the result is used
...
Fixes: runtime error: signed integer overflow: 538976288 * 32 cannot be represented in type 'int'
Fixes: 2310/clusterfuzz-testcase-minimized-4534784887881728
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 27f80ab016 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-23 03:05:34 +02:00
Michael Niedermayer
5c818b6286
avcodec/hevc_filter: Fix invalid shift
...
Fixes: runtime error: left shift of negative value -1
Fixes: 2299/clusterfuzz-testcase-minimized-4843509351710720
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 d7b3d5c3f2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-22 03:08:46 +02:00
Michael Niedermayer
b66e30ca76
avcodec/mpeg4videodec: Fix overflow in virtual_ref computation
...
Fixes: runtime error: signed integer overflow: 262144 * -16120 cannot be represented in type 'int'
Fixes: 2292/clusterfuzz-testcase-minimized-6156080415506432
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 5443c4bdf4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-22 03:08:35 +02:00
Michael Niedermayer
4afd248059
avcodec/wavpack: Fix undefined integer negation
...
Fixes: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
Fixes: 2291/clusterfuzz-testcase-minimized-5538453481586688
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 5f89747086 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-22 03:07:21 +02:00
Michael Niedermayer
cbc4f40d13
avcodec/aacdec_fixed: Check s for being too small
...
Fixes: runtime error: shift exponent -8 is negative
Fixes: 2286/clusterfuzz-testcase-minimized-5711764169687040
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 cf7edbd6c5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-22 03:07:09 +02:00
Anton Mitrofanov
ea73c4813d
avcodec/h264: Fix mix of lossless and lossy MBs decoding
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
(cherry picked from commit cf231b68da )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-20 03:09:10 +02:00
Anton Mitrofanov
a85f8fd4a6
avcodec/h264_mb: Fix 8x8dct in lossless for new versions of x264
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
(cherry picked from commit 06dda70f1e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-20 03:05:01 +02:00
Anton Mitrofanov
365ab04b16
avcodec/h264_cabac: Fix CABAC+8x8dct in 4:4:4
...
Use the correct ctxIdxInc calculation for coded_block_flag.
Keep old behavior for old versions of x264 for backward compatibility.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
(cherry picked from commit 840b41b2a6 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-20 02:27:18 +02:00
Michael Niedermayer
5aa7d228cb
avcodec/takdec: Fixes: integer overflow in AV_SAMPLE_FMT_U8P output
...
Fixes: runtime error: signed integer overflow: 2147483543 + 128 cannot be represented in type 'int'
Fixes: 2234/clusterfuzz-testcase-minimized-6266896041115648
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 27c2006805 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-18 15:17:14 +02:00
Michael Niedermayer
0aa14c7f67
avcodec/jpeg2000dsp: Reorder operations in ict_int() to avoid 2 integer overflows
...
Fixes: runtime error: signed integer overflow: 58065 * 51981 cannot be represented in type 'int'
Fixes: 2271/clusterfuzz-testcase-minimized-5778297776504832
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 c746f92a8e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-17 23:34:49 +02:00
Michael Niedermayer
ba23d53710
avcodec/hevcpred_template: Fix left shift of negative value
...
Fixes: runtime error: left shift of negative value -1
Fixes: 2250/clusterfuzz-testcase-minimized-5693382112313344
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 c94326c1fc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-17 23:34:20 +02:00
Michael Niedermayer
1ce850f96d
avcodec/hevcdec: Fix signed integer overflow in decode_lt_rps()
...
Fixes: runtime error: signed integer overflow: 2147483647 + 6 cannot be represented in type 'int'
Fixes: 2263/clusterfuzz-testcase-minimized-4800359627227136
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 1edbf5e20c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-17 02:25:56 +02:00
Michael Niedermayer
c436af1559
avcodec/jpeg2000dec: Check nonzerobits more completely
...
Fixes: runtime error: shift exponent 36 is too large for 32-bit type 'int'
Fixes: 2239/clusterfuzz-testcase-minimized-5639766592716800
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 dfb61ea263 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-17 02:25:28 +02:00
Michael Niedermayer
eb38f232b4
avcodec/shorten: Sanity check maxnlpc
...
Fixes OOM
Fixes: 2131/clusterfuzz-testcase-minimized-4718045157130240
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 e77ddd31a8 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-17 02:23:55 +02:00
Michael Niedermayer
92c5ff0763
avcodec/jpeg2000: Fixes integer overflow in ff_jpeg2000_ceildivpow2()
...
Fixes: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
Fixes: 2231/clusterfuzz-testcase-minimized-4565181982048256
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 e3fadc57c5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-16 01:43:39 +02:00
Michael Niedermayer
c8733c7376
avcodec/hevcdec: Check nb_sps
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit bc40674462 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-16 01:07:19 +02:00
Michael Niedermayer
c2562f5a8e
avcodec/hevc_refs: Check nb_refs in add_candidate_ref()
...
Fixes: runtime error: index 16 out of bounds for type 'int [16]'
Fixes: 2209/clusterfuzz-testcase-minimized-5012343912136704
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 1cb4ef526d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-16 01:07:19 +02:00
Michael Niedermayer
7bca492cfc
avcodec/mpeg4videodec: Check sprite delta upshift against overflowing.
...
Fixes: runtime error: signed integer overflow: -268386304 * 16 cannot be represented in type 'int'
Fixes: 2204/clusterfuzz-testcase-minimized-5616756909408256
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 12245ab1f6 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-16 00:48:16 +02:00
Michael Niedermayer
296b444a5c
avcodec/mpeg4videodec: Fix integer overflow in num_sprite_warping_points=2 case
...
Fixes: runtime error: signed integer overflow: 131072 + 2147352576 cannot be represented in type 'int'
Fixes: 2192/clusterfuzz-testcase-minimized-5370387988742144
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 0a87be404a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-16 00:47:49 +02:00
Michael Niedermayer
fd0da0eef0
avcodec/aacsbr_fixed: Check shift in sbr_hf_assemble()
...
Fixes: runtime error: shift exponent -10 is negative
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 d1992448d3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-16 00:46:34 +02:00
Michael Niedermayer
0ac4146389
avcodec/sbrdsp_fixed: Return an error from sbr_hf_apply_noise() if operations are impossible
...
Fixes: 1775/clusterfuzz-testcase-minimized-5330288148217856
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 d549f026d8 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-16 00:45:57 +02:00
Michael Niedermayer
bc8fe5c4bd
avcodec/jpeg2000dwt: Fix runtime error: left shift of negative value -123
...
Fixes: 2208/clusterfuzz-testcase-minimized-5976593765761024
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 d24043e1a2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-13 19:51:46 +02:00
Michael Niedermayer
0dfda74afc
avcodec/wavpack: Fix runtime error: signed integer overflow: 1886191616 + 277872640 cannot be represented in type 'int'
...
Fixes: 2181/clusterfuzz-testcase-minimized-6314784322486272
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 c996374d4d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-13 19:48:31 +02:00
Michael Niedermayer
d182bb21ad
avcodec/snowdec: Fix runtime error: left shift of negative value -1
...
Fixes: 2197/clusterfuzz-testcase-minimized-6010716676947968
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 2e44126363 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-11 15:23:29 +02:00
Michael Niedermayer
295b24643e
avcodec/aacdec_fixed: Fix runtime error: left shift of negative value -1297616
...
Fixes: 2195/clusterfuzz-testcase-minimized-4736721533009920
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 6d499ecef9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-11 15:23:23 +02:00
Michael Niedermayer
f0f9fa2184
avcodec/tiff: Fix leak of geotags[].val
...
Fixes: 2176/clusterfuzz-testcase-minimized-5908197216878592
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 22a25ab389 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-11 03:16:55 +02:00
Michael Niedermayer
e3a75af708
avcodec/ra144: Fix runtime error: signed integer overflow: -2200 * 1033073 cannot be represented in type 'int'
...
Fixes: 2175/clusterfuzz-testcase-minimized-5809657849315328
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 71da0a5c97 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-11 03:16:23 +02:00
Michael Niedermayer
5dc0393d96
avcodec/flicvideo: Fix runtime error: signed integer overflow: 4864 * 459296 cannot be represented in type 'int'
...
Fixes: 2174/clusterfuzz-testcase-minimized-5739234533048320
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 90e8317b3b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-11 03:15:13 +02:00
Michael Niedermayer
f4dae48790
avcodec/indeo4: Check remaining data in Pic hdr extension parsing code
...
Fixes: Timeout
Fixes: 2115/clusterfuzz-testcase-minimized-6594111748440064
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 a3b5b60bdf )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-08 17:38:52 +02:00
Michael Niedermayer
bcdd5463f3
avcodec/ac3dec_fixed: Fix multiple runtime error: signed integer overflow: -39271008 * 59 cannot be represented in type 'int'
...
Fixes: 2113/clusterfuzz-testcase-minimized-6510704959946752
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 4e3ab1a5c1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-08 17:38:41 +02:00
Michael Niedermayer
e9c8fdbbcb
avcodec/mpeg4videodec: Fix runtime error: signed integer overflow: 53098 * 40448 cannot be represented in type 'int'
...
Fixes: 2106/clusterfuzz-testcase-minimized-6136503639998464
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 18bca25adb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-06 16:56:49 +02:00
Michael Niedermayer
e3d4321739
avcodec/pafvideo: Fix assertion failure
...
Fixes: 2100/clusterfuzz-testcase-minimized-4522961547558912
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 c4360559ee )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-06 16:56:40 +02:00
Michael Niedermayer
8dc06a1cb1
avcodec/takdec: Fix multiple runtime error: signed integer overflow: 637072 * 4096 cannot be represented in type 'int'
...
Fixes: 2079/clusterfuzz-testcase-minimized-5345861779324928
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 e4efd41b83 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-06 16:56:25 +02:00
Michael Niedermayer
ffab459e4e
Update for 2.8.12
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:52:03 +02:00
Michael Niedermayer
fb95f1d9d6
avcodec/mjpegdec: Check that reference frame matches the current frame
...
Fixes: out of array read
Fixes: 2097/clusterfuzz-testcase-minimized-5036861833609216
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 4705edbbb9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
05d7c10fd3
avcodec/tiff: Avoid loosing allocated geotag values
...
Fixes memleak
Fixes: 2076/clusterfuzz-testcase-minimized-6542640243802112
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 d7cbeab4c1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
dbe771e50d
avcodec/cavs: Fix runtime error: signed integer overflow: -12648062 * 256 cannot be represented in type 'int'
...
Fixes: 2067/clusterfuzz-testcase-minimized-5578430902960128
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 1e6ee86d92 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
e447d3143f
avformat/hls: Check local file extensions
...
This reduces the attack surface of local file-system
information leaking.
It prevents the existing exploit leading to an information leak. As
well as similar hypothetical attacks.
Leaks of information from files and symlinks ending in common multimedia extensions
are still possible. But files with sensitive information like private keys and passwords
generally do not use common multimedia filename extensions.
It does not stop leaks via remote addresses in the LAN.
The existing exploit depends on a specific decoder as well.
It does appear though that the exploit should be possible with any decoder.
The problem is that as long as sensitive information gets into the decoder,
the output of the decoder becomes sensitive as well.
The only obvious solution is to prevent access to sensitive information. Or to
disable hls or possibly some of its feature. More complex solutions like
checking the path to limit access to only subdirectories of the hls path may
work as an alternative. But such solutions are fragile and tricky to implement
portably and would not stop every possible attack nor would they work with all
valid hls files.
Developers have expressed their dislike / objected to disabling hls by default as well
as disabling hls with local files. There also where objections against restricting
remote url file extensions. This here is a less robust but also lower
inconvenience solution.
It can be applied stand alone or together with other solutions.
limiting the check to local files was suggested by nevcairiel
This recommits the security fix without the author name joke which was
originally requested by Nicolas.
Found-by: Emil Lerner and Pavel Cheremushkin
Reported-by: Thierry Foucu <tfoucu@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 189ff42196 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
a20e708352
avcodec/qdrw: Fix null pointer dereference
...
The RGB555 PACKBITSRGN case tries to read a palette, if such
palette is actually stored then it accesses a null pointer.
All 16bit samples i could find use DIRECTBITSRGN.
Fixes: 2065/clusterfuzz-testcase-minimized-6298930457346048
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 46b865ea9f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
591a3d2632
avutil/softfloat: Fix sign error in and improve documentation of av_int2sf()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6019d721d4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
268d84a742
avcodec/hevc_ps: Fix runtime error: index 32 out of bounds for type 'uint8_t [32]'
...
Fixes: 2010/clusterfuzz-testcase-minimized-6209288450080768
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 29808fff33 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
6636b35ef0
avcodec/pafvideo: Check packet size and frame code before ff_reget_buffer()
...
Fixes 1745/clusterfuzz-testcase-minimized-6160693365571584
Fixes: Timeout
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 faa5a2181d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
195b5b6cea
avcodec/ac3dec_fixed: Fix runtime error: left shift of 419 by 23 places cannot be represented in type 'int'
...
Fixes: 1352/clusterfuzz-testcase-minimized-5757565017260032
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 136ce8baa4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
ad600ec886
avcodec/aacps: Fix runtime error: left shift of 1073741824 by 1 places cannot be represented in type 'INTFLOAT' (aka 'int')
...
Fixes: 2005/clusterfuzz-testcase-minimized-5744226438479872
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 9faf098163 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
6ebdffe73c
avcodec/wavpack: Fix runtime error: shift exponent 32 is too large for 32-bit type 'int'
...
Fixes: 1967/clusterfuzz-testcase-minimized-5757031199801344
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 8b3e580b7f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
d1390a8670
avcodec/wavpack: Fix runtime error: signed integer overflow: 2013265955 - -134217694 cannot be represented in type 'int'
...
Fixes: 1922/clusterfuzz-testcase-minimized-5561194112876544
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 a47273c803 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
653de8249d
avcodec/cinepak: Check input packet size before frame reallocation
...
Reduces time spend decoding 1917/clusterfuzz-testcase-minimized-5023221273329664
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 e47057e932 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
041ad6d2bb
avcodec/hevc_ps: Fix runtime error: signed integer overflow: 2147483628 + 256 cannot be represented in type 'int'
...
Fixes: 1909/clusterfuzz-testcase-minimized-6732072662073344
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 6726328f79 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
368aa6aac7
avcodec/ra144: Fixes runtime error: signed integer overflow: 7160 * 327138 cannot be represented in type 'int'
...
Fixes: 1908/clusterfuzz-testcase-minimized-5392712477966336
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 08cb69e870 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
9c0c749c33
avcodec/pnm: Use ff_set_dimensions()
...
Fixes: OOM
Fixes: 1906/clusterfuzz-testcase-minimized-4599315114754048
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 a1c0d1d906 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
b62a5c83fc
avcodec/cavsdec: Fix runtime error: signed integer overflow: 59 + 2147483600 cannot be represented in type 'int'
...
Fixes: 1903/clusterfuzz-testcase-minimized-5359318167715840
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 58f8cd4ac5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
bb7df22328
avformat/avidec: Limit formats in gab2 to srt and ass/ssa
...
This prevents part of one exploit leading to an information leak
Found-by: Emil Lerner and Pavel Cheremushkin
Reported-by: Thierry Foucu <tfoucu@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a5d849b149 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
464288cc5e
avcodec/acelp_pitch_delay: Fix runtime error: value 4.83233e+39 is outside the range of representable values of type 'float'
...
Fixes: 1902/clusterfuzz-testcase-minimized-4762451407011840
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 87bddba43b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
3a56bbe001
avcodec/wavpack: Check float_shift
...
Fixes: runtime error: shift exponent 40 is too large for 32-bit type 'unsigned int'
Fixes: 1898/clusterfuzz-testcase-minimized-5970744880136192
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 4020b009d1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
9a92478556
avcodec/wavpack: Fix runtime error: signed integer overflow: 24 * -2147483648 cannot be represented in type 'int'
...
Fixes: 1894/clusterfuzz-testcase-minimized-4716739789062144
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 d90c5bf105 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
8d1cd5fa08
avcodec/ansi: Fix frame memleak
...
Fixes: 1892/clusterfuzz-testcase-minimized-4519341733183488
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 e091b9b3c7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
20b9b1fd77
avcodec/jpeg2000dec: Use ff_set_dimensions()
...
Fixes: OOM
Fixes: 1890/clusterfuzz-testcase-minimized-6329019509243904
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 f3da6fbff8 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
bbc6bfae37
avcodec/truemotion2: Fix passing null pointer to memset()
...
Fixes part of: 1888/clusterfuzz-testcase-minimized-5237704826552320
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 c901627918 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
b1777d92f9
avcodec/truemotion2: Fix runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
...
Fixes part of: 1888/clusterfuzz-testcase-minimized-5237704826552320
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 c9e884f3d9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
33aed7bb76
avcodec/ra144: Fix runtime error: signed integer overflow: -2449 * 1398101 cannot be represented in type 'int'
...
Fixes: 1885/clusterfuzz-testcase-minimized-5336328549957632
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 7c845450d2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
a7878fe247
avcodec/ra144: Fix runtime error: signed integer overflow: 11184810 * 404 cannot be represented in type 'int'
...
Fixes: 1884/clusterfuzz-testcase-minimized-4637425835966464
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 4c472c5252 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
ba3bc22940
avcodec/aac_defines: Add missing () to AAC_HALF_SUM() macro
...
Fixes: runtime error: shift exponent 1073741848 is too large for 32-bit type 'INTFLOAT' (aka 'int')
Fixes: 1880/clusterfuzz-testcase-minimized-4900645322620928
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 872bac8159 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
3fe7d4c403
avcodec/webp: Fixes null pointer dereference
...
Fixes: 1470/clusterfuzz-testcase-minimized-5404421666111488
Fixes: 1472/clusterfuzz-testcase-minimized-5677426430443520
Fixes: 1875/clusterfuzz-testcase-minimized-5536474562822144
Approved-by: BBB
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 67020711b7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
5ee31596fa
avcodec/aacdec_fixed: Fix runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
...
Fixes: 1878/clusterfuzz-testcase-minimized-6441918630199296
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 6b9cb5d26a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
1d88ec2fb0
avcodec/snow: Fix runtime error: signed integer overflow: 1086573993 + 1086573994 cannot be represented in type 'int'
...
Fixes: 1871/clusterfuzz-testcase-minimized-5719950331215872
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 b9c032ebc0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
65f38d1285
avcodec/jpeg2000: Fix runtime error: signed integer overflow: 4185 + 2147483394 cannot be represented in type 'int'
...
Fixes: 1870/clusterfuzz-testcase-minimized-4686788029317120
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 781f88bb26 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
0103b3ea92
avcodec/jpeg2000dec: Check tile offsets more completely
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9c1812491f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
7b1d93ce9c
avcodec/aacdec_fixed: Fix multiple runtime error: shift exponent 127 is too large for 32-bit type 'int'
...
Fixes: 1851/clusterfuzz-testcase-minimized-5692607495667712
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 6c3a63fc3d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
19556586d5
avcodec/wnv1: More strict buffer size check
...
This requires at least 25% of a picture to allocate and decode it
Fixes: Timeout
Fixes: 1845/clusterfuzz-testcase-minimized-5075974343360512
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 7f50c25124 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
8fbe1f634f
avcodec/libfdk-aacdec: Correct buffer_size parameter
...
the timeDataSize argument to aacDecoder_DecodeFrame() seems undocumented and until
2016 04 (203e3f28fbebec7011342017fafc2a0bda0ce530) unused.
after that commit libfdk-aacdec interprets it as size in sample units and memsets that on error.
FFmpeg as well as others (like GStreamer) did interpret it as size in bytes
Fixes: 1442/clusterfuzz-testcase-minimized-4540199973421056 (This requires recent libfdk to reproduce)
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 ca6776a993 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
492099f9c4
avcodec/sbrdsp_template: Fix: runtime error: signed integer overflow: 849815297 + 1315389781 cannot be represented in type 'int'
...
Fixes: 1770/clusterfuzz-testcase-minimized-5285511235108864
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 7c36ee216f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
259582feaa
avcodec/ivi_dsp: Fix runtime error: left shift of negative value -2
...
Fixes: 1839/clusterfuzz-testcase-minimized-6238490993885184
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 357f2316a0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Kevin Mark
fde04ca718
doc/filters: Clarify scale2ref example
...
Signed-off-by: Kevin Mark <kmark937@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 114e871621 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
59436dc8f8
avcodec/mlpdec: Do not leave invalid values in matrix_out_ch[] on error
...
Fixes: runtime error: index 12 out of bounds for type 'uint8_t [8]'
Fixes: 1832/clusterfuzz-testcase-minimized-6574546079449088
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 ac8dfcbd89 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
50fb6addc9
avcodec/ra144dec: Fix runtime error: left shift of negative value -17
...
Fixes: 1830/clusterfuzz-testcase-minimized-5828293733384192
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 53c0c637d3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
fc449d70cf
avformat/mux: Fix copy an paste typo
...
Found-by: Roger Scott <rscott@grammatech.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1a36354698 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
6025edc0c7
avutil/internal: Do not enable CHECKED with DEBUG
...
This avoids potential undefined behavior in debug mode while still allowing
developers which want to check for potential additional overflows to do so
by manually enabling this.
Reviewed-by: wm4
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a44b3abb4c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
1341713550
avcodec/aacdec_fixed: Fix runtime error: signed integer overflow: -2147483648 * -1 cannot be represented in type 'int'
...
Fixes: 1825/clusterfuzz-testcase-minimized-6002833050566656
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 8e87d146d7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
5529a67817
avcodec/smc: Check remaining input
...
Fixes: Timeout
Fixes: 1818/clusterfuzz-testcase-minimized-5039166473633792
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 356194fcb1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
345f296135
avcodec/jpeg2000dec: Fix copy and paste error
...
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5782e0ba8c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
75d32ff24d
avcodec/jpeg2000dec: Check tile offsets
...
Fixes: runtime error: signed integer overflow: 4096 - -2147483648 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 89325417e7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Max Justicz
87c13e4e88
avcodec/sanm: Fix uninitialized reference frames
...
Fixes: poc.snm
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ca616b0f72 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
52e470097a
avcodec/jpeglsdec: Check get_bits_left() before decoding a picture
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4bc3008d04 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
5148395e86
avcodec/ivi_dsp: Fix multiple runtime error: left shift of negative value -71
...
Fixes: 1734/clusterfuzz-testcase-minimized-5385630815092736
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 8fb00b3e85 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
32ac3f1b1f
avcodec/mjpegdec: Fix runtime error: signed integer overflow: -32767 * 130560 cannot be represented in type 'int'
...
Fixes: 1724/clusterfuzz-testcase-minimized-4842395432648704
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 40fa6a2fa2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
dd373b4027
avcodec/aacdec_fixed: Fix runtime error: shift exponent 34 is too large for 32-bit type 'int'
...
Fixes: 1721/clusterfuzz-testcase-minimized-4719352135811072
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 b5228e44c7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
8bc5e90bb2
avcodec/mpeg4videodec: Check for multiple VOL headers
...
Fixes multiple: runtime error: signed integer overflow: 2147115008 + 413696 cannot be represented in type 'int'
Fixes: 1723/clusterfuzz-testcase-minimized-5309409372667904
Fixes: 1727/clusterfuzz-testcase-minimized-5900685306494976
Fixes: 1737/clusterfuzz-testcase-minimized-5922321338466304
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 efeb47fd5d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
5ceb27b0eb
avcodec/vmnc: Check location before use
...
Fixes: runtime error: signed integer overflow: 65535 * 64256 cannot be represented in type 'int'
Fixes: 1717/clusterfuzz-testcase-minimized-5491696676634624
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 ec2b76aab4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
ea4b807c0a
avcodec/takdec: Fix runtime error: signed integer overflow: 8192 * 524308 cannot be represented in type 'int'
...
Fixes: 1630/clusterfuzz-testcase-minimized-6326111917047808
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 955db41192 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
0155d1c1cb
avcodec/aac_defines: Fix: runtime error: left shift of negative value -2
...
Fixes: 1716/clusterfuzz-testcase-minimized-4691012196761600
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 c3547dcbc3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
45c9fe61d9
avcodec/takdec: Fix runtime error: left shift of negative value -63
...
Fixes: 1713/clusterfuzz-testcase-minimized-5791887476654080
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 d66193252b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
11e2bdd53e
avcodec/mlpdsp: Fix runtime error: signed integer overflow: -24419392 * 128 cannot be represented in type 'int'
...
Fixes: 1711/clusterfuzz-testcase-minimized-5248503515185152
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 1d04fc94e1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
7d61e21953
avcodec/sbrdsp_fixed: fix runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
...
Fixes: part of 1709/clusterfuzz-testcase-minimized-4513580554649600
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 384508b2ff )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
Michael Niedermayer
88fabd8016
avcodec/aacsbr_fixed: Fix multiple runtime error: shift exponent 170 is too large for 32-bit type 'int'
...
Fixes part of 1709/clusterfuzz-testcase-minimized-4513580554649600
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 6310fc714d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-06-05 23:16:54 +02:00
James Almer
24d744cabe
avcodec/hevc_sei: fix amount of bits skipped when reading picture timing SEI message
...
The code was skipping the entire reported SEI message size regardless of
the amount of bits read.
While in theory safe for NALU where the picture timing SEI message is alone
or at the end as we're using the checked bitstream reader, it isn't in any
other situation, where every SEI message in the NALU after the picture
timing one would potentially fail to parse.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit f738140807 )
Conflicts:
libavcodec/hevc_sei.c
2017-05-19 23:38:04 -03:00
James Almer
870f1e3836
avformat/concatdec: fix the h264 annexb extradata check
...
The start code can be either in the first three or four bytes.
(cherry picked from commit b4330a0e02 )
2017-05-19 23:37:59 -03:00
Aaron Levinson
0109a152a1
avformat/utils: free AVStream.codec properly in free_stream()
...
Fixes memory leaks.
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit b9d2005ea5 )
2017-05-19 23:37:49 -03:00
James Almer
1c302b606e
avcodec/options: do a more thorough clean up in avcodec_copy_context()
...
Free coded_frame to prevent potential leaks.
Reviewed-by: Aaron Levinson <alevinsn@aracnet.com >
Tested-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit cac8de2da5 )
2017-05-19 23:37:03 -03:00
James Almer
4122e5fcb3
avcodec/options: factorize avcodec_copy_context() cleanup code
...
Reviewed-by: Aaron Levinson <alevinsn@aracnet.com >
Tested-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 54a4c9b4e9 )
2017-05-19 23:22:23 -03:00
Michael Niedermayer
4117f19f2f
avcodec/mlpdec: Do not leave a invalid num_primitive_matrices in the context
...
Fixes: runtime error: index 8 out of bounds for type 'uint8_t [8]'
Fixes: 1699/clusterfuzz-testcase-minimized-6327177438035968
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 64ea4d102a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
3ecff1b7e5
avcodec/aacsbr_fixed: Fix multiple runtime error: shift exponent 150 is too large for 32-bit type 'int'
...
Fixes: 1681/clusterfuzz-testcase-minimized-5970545365483520
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 3fb104f447 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
860ff3c447
avcodec/mimic: Use ff_set_dimensions() to set the dimensions
...
Fixes: OOM
Fixes: 1671/clusterfuzz-testcase-minimized-4759078033162240
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 e434840fd4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
1397c7f616
avcodec/fic: Fix multiple runtime error: signed integer overflow: 5793 * 419752 cannot be represented in type 'int'
...
Fixes: 1669/clusterfuzz-testcase-minimized-5287529198649344
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 a173f484b5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
346e2d1663
avcodec/mlpdec: Fix: runtime error: left shift of negative value -8
...
Fixes: 1658/clusterfuzz-testcase-minimized-4889937130291200
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 25c81e4b73 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
9e62e1cded
avcodec/dfa: Fix: runtime error: signed integer overflow: -14202 * 196877 cannot be represented in type 'int'
...
Fixes: 1657/clusterfuzz-testcase-minimized-4710000079405056
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 58ac7fb9c3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
afc0b559f6
avcodec/aacdec: Fix runtime error: signed integer overflow: 2147483520 + 255 cannot be represented in type 'int'
...
Fixes: 1656/clusterfuzz-testcase-minimized-5900404925661184
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 94d05ff159 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
f76c1554f6
avcodec/aacdec_template: Fix fixed point scale in decode_cce()
...
Fixes: runtime error: shift exponent 1073741824 is too large for 32-bit type 'int'
Fixes: 1654/clusterfuzz-testcase-minimized-5151903795118080
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 53a502206a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
209124a944
avcodec/flicvideo: Check frame_size before decrementing
...
Fixes: runtime error: signed integer overflow: -2147483627 - 22 cannot be represented in type 'int'
Fixes: 1637/clusterfuzz-testcase-minimized-5376582493405184
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 355e27e24d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
f5d0960872
avcodec/mlpdec: Fix runtime error: left shift of negative value -1
...
Fixes: 1636/clusterfuzz-testcase-minimized-5310494757879808
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 552adf1dd3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
07ca48cecf
avcodec/takdec: Fix runtime error: left shift of negative value -42
...
Fixes: 1635/clusterfuzz-testcase-minimized-4992749856096256
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 99c4c76cfb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
28d7c43d0f
avcodec/hq_hqa: Fix: runtime error: signed integer overflow: -255 * 10180917 cannot be represented in type 'int'
...
Fixes: 1626/clusterfuzz-testcase-minimized-6416580571299840
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 3d9cb583c8 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
9dcd02a5a5
avcodec/truemotion1: Fix multiple runtime error: signed integer overflow: 1246906962 * 2 cannot be represented in type 'int'
...
Fixes: 1616/clusterfuzz-testcase-minimized-5119196578971648
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 5ea6bc2a166edac37042f2bbc28eb603a0fbeccb)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
c90ad2b5cc
avcodec/svq3: Fix runtime error: left shift of negative value -6
...
Fixes: 1604/clusterfuzz-testcase-minimized-5312060206350336
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 a6eb006ad4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
a1778b8cdd
avcodec/tiff: reset sampling[] if its invalid
...
Fixes divission by 0
Fixes: clusterfuzz-testcase-minimized-5592896440893440
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 f08122fbe0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
aa941e9aa9
avcodec/aacps: Fix undefined behavior
...
Fixes: 1337/clusterfuzz-testcase-minimized-5212314171080704
Fixes the existence of a potentially invalid pointer intermediate
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 527f89e059 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
53567e573b
avcodec/opus_silk: Fix integer overflow and out of array read
...
Fixes: 1362/clusterfuzz-testcase-minimized-6097275002552320
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 4654baff12 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
ec70017f9f
avcodec/flacdec: Return error code instead of 0 for failures
...
Fixes: infinite loop
Fixes: 1418/clusterfuzz-testcase-minimized-5934472438480896
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 3f5a68533d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
eca9c51090
avcodec/snowdec: Check width
...
Fixes: out of array read
Fixes: 1419/clusterfuzz-testcase-minimized-6108700873850880
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 78aa93807b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
ef94fb391f
avcodec/webp: Update canvas size in vp8_lossy_decode_frame() as in vp8_lossless_decode_frame()
...
Fixes: 1407/clusterfuzz-testcase-minimized-6044604124102656
Fixes: 1420/clusterfuzz-testcase-minimized-6059927359455232
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 72810d20b7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
4ad139ba23
avcodec/webp: Factor update_canvas_size() out
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c4f63b78b7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
b3e3cdc0fd
avcodec/cllc: Check prefix
...
Fixes: runtime error: left shift of 1610706944 by 1 places cannot be represented in type 'int'
Fixes: 1421/clusterfuzz-testcase-minimized-6239947507892224
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 62c5949bec )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
5b809f53c2
avcodec/dds: Fix runtime error: left shift of 210 by 24 places cannot be represented in type 'int'
...
Fixes: 1510/clusterfuzz-testcase-minimized-5826231746428928
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 afb4632cc3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
ab56c64835
avcodec/mpeg4videodec: Clear sprite wraping on unsupported cases in VOP decode
...
Fixes: Integer overflow
Fixes: 1572/clusterfuzz-testcase-minimized-4578773729017856
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 467677769a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:34 +02:00
Michael Niedermayer
b17779fc14
avcodec/ac3dec: Fix: runtime error: index -1 out of bounds for type 'INTFLOAT [2]'
...
It seems dual mono with a LFE channel is not forbidden
Fixes: 1570/clusterfuzz-testcase-minimized-6455337349545984
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 c55e637072 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
12f969bd2c
avcodec/hqxdsp: Fix runtime error: signed integer overflow: -196264 * 11585 cannot be represented in type 'int'
...
Fixes: 1568/clusterfuzz-testcase-minimized-5944868608147456
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 b923213276 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
42f2cf1597
libswscale/tests/swscale: Fix uninitialized variables
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7796f29065 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
bfc1534362
avcodec/ffv1dec: Fix runtime error: signed integer overflow: 1550964438 + 1550964438 cannot be represented in type 'int'
...
Fixes: 1559/clusterfuzz-testcase-minimized-5048096079740928
Fixes: 1560/clusterfuzz-testcase-minimized-6011037813833728
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 8630b2cd36 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
35ed8aa76f
avcodec/webp: Fix signedness in prefix_code check
...
Fixes: out of array read
Fixes: 1557/clusterfuzz-testcase-minimized-6535013757616128
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 8c5cd1c9d3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
4ed535d79b
avcodec/svq3: Fix runtime error: signed integer overflow: 169 * 12717677 cannot be represented in type 'int'
...
Fixes: 1556/clusterfuzz-testcase-minimized-5027865978470400
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 86b1b0d33d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
6e46f19cc8
avcodec/mlpdec: Check that there is enough data for headers
...
Fixes: out of array access
Fixes: 1541/clusterfuzz-testcase-minimized-6403410590957568
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 e3e51f8c14 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
0c92adda48
avcodec/ac3dec: Keep track of band structure
...
It is needed in some corner cases that seem not to be forbidden
Fixes: out of array index
Fixes: 1538/clusterfuzz-testcase-minimized-4696904925446144
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 9351a156de )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
2ec60b919f
avcodec/webp: Add missing input padding
...
Fixes: 1536/clusterfuzz-testcase-minimized-5973925404082176
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 a3508cc3fe )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
c853966783
avcodec/aacdec_fixed: Fix runtime error: left shift of negative value -1
...
Fixes: 1535/clusterfuzz-testcase-minimized-5826695535788032
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 26227d9186 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
699ca0075a
avcodec/aacsbr_template: Do not change bs_num_env before its checked
...
Fixes: 1489/clusterfuzz-testcase-minimized-5075102901207040
Fixes: out of array access
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 87b08ee6d2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
cb45926aa9
avcodec/mlp: Fix multiple runtime error: left shift of negative value -1
...
Fixes: 1512/clusterfuzz-testcase-minimized-4713846423945216
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 74dc728a2c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
b198bd75bf
avcodec/vp8dsp: vp7_luma_dc_wht_c: Fix multiple runtime error: signed integer overflow: -1366381240 + -1262413604 cannot be represented in type 'int'
...
Fixes: 1440/clusterfuzz-testcase-minimized-5785716111966208
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 ccce2248bf )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
dccd62dc89
avcodec/avcodec: Limit the number of side data elements per packet
...
Fixes: 1293/clusterfuzz-testcase-minimized-6054752074858496
See: [FFmpeg-devel] [PATCH] avcodec/avcodec: Limit the number of side data elements per packet
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 d5711cb891 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
4ea880c55e
avcodec/texturedsp: Fix runtime error: left shift of 255 by 24 places cannot be represented in type 'int'
...
Fixes: 1505/clusterfuzz-testcase-minimized-4561688818876416
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 f225003d17 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
4ce0554daa
avcodec/wmv2dsp: Fix runtime error: signed integer overflow: 181 * -17047030 cannot be represented in type 'int'
...
Fixes: 1503/clusterfuzz-testcase-minimized-5369271855087616
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 df640dbbc9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
53d5e655c7
avcodec/diracdec: Fix Assertion frame->buf[0] failed at libavcodec/decode.c:610
...
Fixes: 1487/clusterfuzz-testcase-minimized-6288036495097856
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 6899e6e560 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
f2bdef4f2a
avcodec/msmpeg4dec: Check for cbpy VLC errors
...
Fixes: runtime error: left shift of negative value -1
Fixes: 1480/clusterfuzz-testcase-minimized-5188321007370240
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 15e892aad1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
f05cd37d51
avcodec/cllc: Check num_bits
...
Fixes: runtime error: shift exponent -2 is negative
Fixes: 1479/clusterfuzz-testcase-minimized-6638493360979968
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 2bfd0a9758 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
d6e7a96fc4
avcodec/cllc: Factor VLC_BITS/DEPTH out, do not use repeated literal numbers
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e717fa1f0a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
680157adb2
avcodec/dvbsubdec: Check entry_id
...
Fixes: randomly writing over the array end
Fixes: 1473/clusterfuzz-testcase-minimized-5768907824562176
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 8a69f2602f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
1f8047adb8
avcodec/aacdec_fixed: Fix multiple shift exponent 33 is too large for 32-bit type 'int'
...
Fixes: 1471/clusterfuzz-testcase-minimized-6376460543590400
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 3a0ff78168 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
df84fb2304
avcodec/mpeg12dec: Fixes runtime error: division by zero
...
Fixes: 1464/clusterfuzz-testcase-minimized-4925445571084288
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 c0ece1f4ad )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
e7568a4352
avcodec/webp: Always set pix_fmt
...
Fixes: out of array access
Fixes: 1434/clusterfuzz-testcase-minimized-6314998085189632
Fixes: 1435/clusterfuzz-testcase-minimized-6483783723253760
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6b5d3fb26f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
60bc8b6282
avfilter/vf_uspp: Fix currently unused input frame dimensions
...
Found-by: Nicolas
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 942036e97c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
79905e0dff
avcodec/truemotion1: Fix multiple runtime error: left shift of negative value -1
...
Fixes: 1446/clusterfuzz-testcase-minimized-5577409124368384
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 db5fae3229 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
85d4892cb9
avcodec/eatqi: Fix runtime error: signed integer overflow: 4466147 * 1075 cannot be represented in type 'int'
...
Fixes: 1443/clusterfuzz-testcase-minimized-4826998612426752
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 a8de60ba27 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
507ed0ab52
avcodec/dss_sp: Fix runtime error: signed integer overflow: 2147481189 + 4096 cannot be represented in type 'int'
...
Fixes: 1441/clusterfuzz-testcase-minimized-6223152357048320
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 6ea4287893 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
李赞
37f59340bb
avformat/wavdec: Check chunk_size
...
Fixes integer overflow and out of array access
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3d23219637 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
7bbd92f69d
avcodec/cavs: Check updated MV
...
Fixes: runtime error: signed integer overflow: 251 + 2147483647 cannot be represented in type 'int'
Fixes: 1438/clusterfuzz-testcase-minimized-4917542646710272
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 5871adc90f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
a98d82b13d
avcodec/y41pdec: Fix width in input buffer size check
...
Fixes: out of array read
Fixes: 1437/clusterfuzz-testcase-minimized-4569970002362368
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 3d8d372947 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
4dacf6bc4a
avcodec/svq3: Fix multiple runtime error: signed integer overflow: -237341 * 24552 cannot be represented in type 'int'
...
Fixes: 1429/clusterfuzz-testcase-minimized-5959951610544128
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 ae6fd1790f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
43bdff201d
avcodec/texturedsp: Fix runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
...
Fixes: 1428/clusterfuzz-testcase-minimized-5263281793007616
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 2bd8eb05d2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
1c75d1b54b
avcodec/lagarith: Check scale_factor
...
Fixes: 1425/clusterfuzz-testcase-minimized-6295712339853312
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 ed3c9b5b0d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
5380abf785
avcodec/lagarith: Fix runtime error: left shift of negative value -1
...
Fixes: 1424/clusterfuzz-testcase-minimized-6088327159611392
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 ddb2dd7edb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
db3d3ced15
avcodec/takdec: Fix multiple runtime error: left shift of negative value -1
...
Fixes: 1423/clusterfuzz-testcase-minimized-5063889899225088
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 c5d2fa2fdf )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
2dcdf145f5
avcodec/indeo2: Check for invalid VLCs
...
Fixes: timeout
Fixes: 1416/clusterfuzz-testcase-minimized-5536862435278848
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 159fb8ff7e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
bd908055c8
avcodec/htmlsubtitles: Check for string truncation and return error
...
Fixes out of array access
Fixes: 1354/clusterfuzz-testcase-minimized-5520132195483648
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 f4ae3cce64 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
6db01ccde7
avcodec/bmvvideo: Fix runtime error: left shift of 137 by 24 places cannot be represented in type 'int'
...
Fixes: 1411/clusterfuzz-testcase-minimized-5776085184675840
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 29692023b2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
fbeb8c760c
avcodec/dss_sp: Fix multiple runtime error: signed integer overflow: -15699 * -164039 cannot be represented in type 'int'
...
Fixed: 1409/clusterfuzz-testcase-minimized-5237365020819456
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 ea59ef0c03 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
e7d36d262e
avcodec/dvbsubdec: check region dimensions
...
Fixes: 1408/clusterfuzz-testcase-minimized-6529985844084736
Fixes: integer overflow
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 0075d9eced )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
ea10865d78
avcodec/vp8dsp: Fixes: runtime error: signed integer overflow: 1330143360 - -1023040530 cannot be represented in type 'int'
...
Fixes: 1406/clusterfuzz-testcase-minimized-5064865125236736
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 8824b7370a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
6606445c85
avcodec/hqxdsp: Fix multiple runtime error: signed integer overflow: 248220 * 21407 cannot be represented in type 'int' in idct_col()
...
Fixes: 1405/clusterfuzz-testcase-minimized-5011491835084800
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 5d5118f81b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
ab494a84dd
avcodec/cavsdec: Check sym_factor
...
Fixes: runtime error: signed integer overflow: 25984 * 130560 cannot be represented in type 'int'
Fixes: 1404/clusterfuzz-testcase-minimized-5000441286885376
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 279420b5a6 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
ff342d0587
avcodec/cdxl: Check format for BGR24
...
Fixes: out of array access
Fixes: 1427/clusterfuzz-testcase-minimized-5020737339392000
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 1e42736b95 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
1116de7ba7
avcodec/ffv1dec: Fix copying planes of paletted formats
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3a4d387195 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
2474b81eca
avcodec/wmv2dsp: Fix runtime error: signed integer overflow: 181 * -12156865 cannot be represented in type 'int'
...
Fixes: 1401/clusterfuzz-testcase-minimized-6526248148795392
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 8b1f66cf5c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
39108a4724
avcodec/xwddec: Check bpp more completely
...
Fixes out of array access
Fixes: 1399/clusterfuzz-testcase-minimized-4866094172995584
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 441026fcb1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
73e68fbe86
avcodec/s302m: Fix left shift of 8 by 28 places cannot be represented in type 'int'
...
Fixes: 1395/clusterfuzz-testcase-minimized-5330939741732864
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 a38e9797cb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
89b2c24931
avcodec/eamad: Fix runtime error: signed integer overflow: 49674 * 49858 cannot be represented in type 'int'
...
Fixes: 1394/clusterfuzz-testcase-minimized-6493376885030912
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 0ac1c87194 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
fc99e4c972
avcodec/g726: Fix runtime error: left shift of negative value -2
...
Fixes: 1393/clusterfuzz-testcase-minimized-5948366791901184
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 c04aa14882 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
c9cdea2a24
avcodec/ra144: Fix runtime error: left shift of negative value -798
...
Fixes: 1388/clusterfuzz-testcase-minimized-6680800936329216
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 78bf446852 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
6856a8f0ad
avcodec/mss34dsp: Fix multiple signed integer overflow
...
Fixes: 1387/clusterfuzz-testcase-minimized-4802757766676480
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 464c4b86ee )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
d2dba39204
avcodec/targa_y216dec: Fix width type
...
Fixes out of array access
Fixes: 1376/clusterfuzz-testcase-minimized-6361794975105024
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 3e56db8926 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
91394cc4da
avcodec/ivi_dsp: Fix multiple left shift of negative value -2
...
Fixes: 1385/clusterfuzz-testcase-minimized-5552882663292928
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 9e88cc94e5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
833a759d40
avcodec/svq3: Fix multiple runtime error: signed integer overflow: 44161 * 61694 cannot be represented in type 'int'
...
Fixes: 1382/clusterfuzz-testcase-minimized-6013445293998080
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 669419939c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
906c9d0804
avcodec/msmpeg4dec: Correct table depth
...
Fixes undefined shift
Fixes: 1381/clusterfuzz-testcase-minimized-5513944540119040
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 1121d92707 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
5b56c2d83a
avcodec/dds: Fix runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
...
Fixes: 1380/clusterfuzz-testcase-minimized-650122545122508
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 8a8335de03 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
191e0f7e2b
avcodec/cdxl: Check format parameter
...
Fixes out of array access
Fixes: 1378/clusterfuzz-testcase-minimized-5715088008806400
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 e1b60aad77 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
224ed78e72
avutil/softfloat: Fix overflow in av_div_sf()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 277e397eb5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
d68870a606
avcodec/hq_hqa: Fix runtime error: left shift of negative value -207
...
Fixes: 1375/clusterfuzz-testcase-minimized-6070134701555712
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 1283c42447 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
afbe970534
avcodec/mss3: Change types in rac_get_model_sym() to match the types they are initialized from
...
Fixes integer overflow
Fixes: 1372/clusterfuzz-testcase-minimized-5712192982745088
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 2ef0f39271 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
b9289fad4b
avcodec/shorten: Check k in get_uint()
...
Fixes: undefined shift
Fixes: 1371/clusterfuzz-testcase-minimized-5770822591447040
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 7b6a51f59c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
ff27d17348
avcodec/webp: Fix null pointer dereference
...
Fixes: 1369/clusterfuzz-testcase-minimized-5048908029886464
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 9bf4523e40 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
1951a44d77
avcodec/dfa: Fix signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'
...
Fixes: 1368/clusterfuzz-testcase-minimized-4507293276176384
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 12936a4585 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
54368ac9b3
avcodec/mimic: Fix runtime error: left shift of negative value -1
...
Fixes: 1365/clusterfuzz-testcase-minimized-5624158450876416
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 fc2c420b82 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
ce0db291c6
avcodec/fic: Fix multiple left shift of negative value -15
...
Fixes: 1356/clusterfuzz-testcase-minimized-6008489086287872
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 b20c71409b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
00371aff3d
avcodec/mlpdec: Fix runtime error: left shift of negative value -22
...
Fixes: 1355/clusterfuzz-testcase-minimized-6662205472768000
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 c535436cbe )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
acb589b12d
avcodec/snowdec: Check qbias
...
Fixes: signed integer overflow: -1094995529 * 131 cannot be represented in type 'int'
Fixes: 1353/clusterfuzz-testcase-minimized-5208180449607680
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 523205ce1e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
5dec065a4d
avutil/softfloat: Fix multiple runtime error: left shift of negative value -8
...
Fixes: 1352/clusterfuzz-testcase-minimized-5757565017260032
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 35f3df0d76 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
ddab43d3a8
avcodec/aacsbr_template: Do not leave bs_num_env invalid
...
Fixes out of array read
Fixes: 1349/clusterfuzz-testcase-minimized-5370707196248064
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 a8ad83b793 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
51b8a78851
avcodec/mdec: Fix signed integer overflow: 28835400 * 83 cannot be represented in type 'int'
...
Fixes: 1346/clusterfuzz-testcase-minimized-5776732600664064
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 a234b5ade3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
1e9fa7c69f
avcodec/dfa: Fix off by 1 error
...
Fixes out of array access
Fixes: 1345/clusterfuzz-testcase-minimized-6062963045695488
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 f52fbf4f3e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
cd6c4082db
avcodec/nellymoser: Fix multiple left shift of negative value -8591
...
Fixes: 1342/clusterfuzz-testcase-minimized-5490842129137664
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 0953736b7e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
3366d18c29
avcodec/cdxl: Fix signed integer overflow: 14243456 * 164 cannot be represented in type 'int'
...
Fixes: 1341/clusterfuzz-testcase-minimized-5441502618583040
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 1002932a3b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
cacae0656f
avcodec/g722: Fix multiple runtime error: left shift of negative value -1
...
Fixes: 1340/clusterfuzz-testcase-minimized-4669892148068352
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 f55df62998 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
a6e7636dac
avcodec/dss_sp: Fix multiple left shift of negative value -466
...
Fixes: 1339/clusterfuzz-testcase-minimized-4614671485108224
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 38152d9368 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
2197423ec9
avcodec/wnv1: Fix runtime error: left shift of negative value -1
...
Fixes: 1338/clusterfuzz-testcase-minimized-6485546354343936
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 9fac508ca4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
e924213492
avcodec/tiertexseqv: set the fixed dimenasions, do not depend on the demuxer doing so
...
Fixes: out of array access
Fixes: 1348/clusterfuzz-testcase-minimized-6195673642827776
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 ce551a3925 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
7ab6224083
avcodec/mjpegdec: Fix runtime error: signed integer overflow: -24543 * 2031616 cannot be represented in type 'int'
...
Fixes: 943/clusterfuzz-testcase-5114865297391616
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 a78ae465fd )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
e45de9d279
avcodec/cavsdec: Fix undefined behavior from integer overflow
...
Fixes: 1335/clusterfuzz-testcase-minimized-5566961566089216
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 a0e5f7f363 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
65bc41b857
avcodec/dvdsubdec: Fix runtime error: left shift of 242 by 24 places cannot be represented in type 'int'
...
Fixes: 1080/clusterfuzz-testcase-5353236754071552
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 ce7098b8f2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
7dc7d70644
libavcodec/mpeg4videodec: Convert sprite_offset to 64bit
...
This avoids intermediates from overflowing (the final values are checked)
Fixes: runtime error: signed integer overflow: -167712 + -2147352576 cannot be represented in type 'int'
Fixes: 1298/clusterfuzz-testcase-minimized-5955580877340672
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 c1c3a14073 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
4ea21dd574
avcodec/pngdec: Use ff_set_dimensions()
...
Fixes OOM
Fixes: 1314/clusterfuzz-testcase-minimized-4621997222920192
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 a0296fc056 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
0a391b738e
avcodec/msvideo1: Check buffer size before re-getting the frame
...
Fixes timeout
Fixes: 1306/clusterfuzz-testcase-minimized-6152296217968640
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 cabfed6895 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
533999aaad
avcodec/h264_cavlc: Fix undefined behavior on qscale overflow
...
Fixes: 1214/clusterfuzz-testcase-minimized-6130606599569408
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 fc8cff96ed )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
9d2939a791
avcodec/svq3: Increase offsets to prevent integer overflows
...
Fixes: 1280/clusterfuzz-testcase-minimized-6102353767825408
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 382b4fc9b5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
97458a040f
avcodec/indeo2: Check remaining bits in ir2_decode_plane()
...
Fixes: 1290/clusterfuzz-testcase-minimized-5815578902134784
Fixes: timeout
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 b29feec982 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
7f5c9250de
avcodec/vp3: Check remaining bits in unpack_dct_coeffs()
...
Decreases the time spend decoding junk.
May fix: 1283/clusterfuzz-testcase-minimized-6221126759874560
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 2f00300b77 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
37f5bfaa2b
avcodec/mdec: Fix runtime error: left shift of negative value -127
...
Fixes undefined behavior
Fixes: 1275/clusterfuzz-testcase-minimized-6718162017976320
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 6ca82975b7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Martin Vignali
d1b23e5c0c
libavcodec/exr : fix float to uint16 conversion for negative float value
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e46d637452 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Derek Buitenhuis
77dd220385
avformat/webmdashenc: Validate the 'streams' adaptation sets parameter
...
It should not be a value larger than the number of streams we have,
or it will cause invalid reads and/or SIGSEGV.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ec07efa700 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Derek Buitenhuis
436f1d4562
avformat/webmdashenc: Require the 'adaptation_sets' option to be set
...
This seems to be non-optional, and if the muxer is run without it,
strlen() is run on NULL, causing a segfault.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit cbd3a68f3e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
3fd8e79dc9
avcodec/dvdsubdec: Fixes 2 runtime error: left shift of 170 by 24 places cannot be represented in type 'int'
...
Fixes: 619/clusterfuzz-testcase-5803914534322176
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 61ee2ca775 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
cbd0036856
avfilter/avfiltergraph: Add assert to write down in machine readable form what is assumed about sample rates in swap_samplerates_on_filter()
...
Fixes CID1397292
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5f2b360fc0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
344e5de993
avcodec/tiff: Perform multiply in tiff_unpack_lzma() as 64bit
...
This should make no difference as the value should not be able to be that large
but its more correct this way
Fixes CID1348138
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f48b6b8b91 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Philip Langdale
9c7730417d
avcodec/vdpau_hevc: Fix potential out-of-bounds write
...
The maximum number of references is 16, so the index value cannot
exceed 15.
Fixes Coverity CID 1348139, 1348140, 1348141
(cherry picked from commit 4e6d1c1f4e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
95594b9815
avcodec/tiff: Check geotag count for being non zero
...
Fixes memleak
Fixes: 874/clusterfuzz-testcase-5252796175613952
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 3182e19c1c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
a2a028af6e
avcodec/vp56: Check avctx->error_concealment before enabling EC
...
Fixes timeout with 847/clusterfuzz-testcase-5291877358108672
Fixes timeout with 850/clusterfuzz-testcase-5721296509861888
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 98da63b3f5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
26b2b2d052
avcodec/tiff: Check stripsize strippos for overflow
...
Fixes: 861/clusterfuzz-testcase-5688284384591872
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 5d996b5649 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
17624e4156
avcodec/mpegaudiodec_template: Make l3_unscale() work with e=0
...
Fixes undefined behavior
Fixes: 830/clusterfuzz-testcase-6253175327686656
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 8ebed703f1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
b34ca8295d
avcodec/tiff: Check for multiple geo key directories
...
Fixes memleak
Fixes: 826/clusterfuzz-testcase-5316921379520512
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 108b02e547 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
922013c983
avcodec/wavpack: Fix runtime error: shift exponent 32 is too large for 32-bit type 'int'
...
Fixes: 822/clusterfuzz-testcase-4873433189974016
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 7cebc5a9cc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
36c314e76a
avcodec/rv34: Fix runtime error: signed integer overflow: 36880 * 66288 cannot be represented in type 'int'
...
Fixes: 768/clusterfuzz-testcase-4807444305805312
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 a66c6e28b5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
4e2c1055a0
avcodec/amrwbdec: Fix runtime error: left shift of negative value -1
...
Fixes: 763/clusterfuzz-testcase-6007567320875008
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 44e2105189 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
e83d6c6819
avcodec/mpeg4videodec: Fix runtime error: signed integer overflow: -135088512 * 16 cannot be represented in type 'int'
...
Fixes: 736/clusterfuzz-testcase-5580263943831552
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 e2a4f1a9eb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
96cc855c1a
avcodec/h264_mvpred: Fix runtime error: left shift of negative value -1
...
Fixes: 734/clusterfuzz-testcase-4821293192970240
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 222c9f031d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
bf37f12f40
avcodec/mjpegdec: Fix runtime error: left shift of negative value -127
...
Fixes: 733/clusterfuzz-testcase-4682158096515072
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 800d02abe0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
4d4ce42f0b
avcodec/wavpack: Fix runtime error: left shift of negative value -5
...
Fixes: 729/clusterfuzz-testcase-5154831595470848
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 3016e919d4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
f31e43175c
avcodec/wavpack: Fix runtime error: left shift of negative value -2
...
Fixes: 723/clusterfuzz-testcase-6471394663596032
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 ba15005132 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
5cb5e2550e
avcodec/mpeg4videodec: Fix runtime error: signed integer overflow: 134527392 * 16 cannot be represented in type 'int'
...
This checks the sprite delta intermediates for overflow
Fixes: 716/clusterfuzz-testcase-4890287480504320
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 fab13bbbcd )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
c41ce74c8a
avcodec/mpeg12dec: Fix runtime error: left shift of negative value -13
...
Fixes: 709/clusterfuzz-testcase-4789836449841152
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 d757ddbaab )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
8ca5f502ac
avcodec/h264_mvpred: Fix multiple runtime error: left shift of negative value
...
Fixes: 710/clusterfuzz-testcase-5091051431788544
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 ab998f4c7f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
1a8f1ae223
avcodec/adxdec: Fix runtime error: left shift of negative value -1
...
Fixes: 705/clusterfuzz-testcase-5129572590813184
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 d23727e042 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
66d81c5926
avcodec/mpeg4videodec: Improve the overflow checks in mpeg4_decode_sprite_trajectory()
...
Also clear the state on errors
Fixes integer overflows in 701/clusterfuzz-testcase-6594719951880192
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 eb41956636 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
718c1433d9
avcodec/mjpegdec: Fix runtime error: left shift of negative value -511
...
Fixes: 693/clusterfuzz-testcase-6109776066904064
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 4b72d5cd6f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
b9cc73fafb
avcodec/h264_direct: Fix runtime error: left shift of negative value -14
...
Fixes: 682/clusterfuzz-testcase-4799120021651456
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 4bd3f1ce3e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
e65462291e
avcodec/pictordec: Check plane value before doing value/mask computations
...
Fixes integer overflow
Fixes: 675/clusterfuzz-testcase-6722971232108544
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 63e400a880 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
09e51a464c
avcodec/mpeg4videodec: Fix runtime error: left shift of negative value -2650
...
Fixes: 674/clusterfuzz-testcase-6713275880308736
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 25e93aacc2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
5453ac597e
avcodec/eac3dec: Fix runtime error: left shift of negative value -3
...
Fixes: 672/clusterfuzz-testcase-5595018867769344
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 87eb374970 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
d782b0b2ad
avcodec/mpeg12dec: Fix runtime error: left shift of negative value -2
...
671/clusterfuzz-testcase-4990381827555328
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit aff8cf18cb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
e5c39ad0e9
avcodec/mpeg4videodec: Check the other 3 sprite points for intermediate overflows
...
This is not necessarily specific to fuzzed files
Fixes: Multiple integer overflows
Fixes: 656/clusterfuzz-testcase-6463814516080640
Fixes: 658/clusterfuzz-testcase-6691260146384896
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 76ba09d182 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
a50259df79
avcodec/mpeg4videodec: Check sprite_offset in addition to shifts
...
Fixes: 651/clusterfuzz-testcase-5710668915277824
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 6871df02d9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
bccc669fb1
avcodec/mpeg4video: Fix runtime error: left shift of negative value
...
Fixes: 644/clusterfuzz-testcase-4726434209726464
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 6179dc8aa7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
38e34f5015
avcodec/ituh263dec: Fix runtime error: left shift of negative value -22
...
Fixes: 639/clusterfuzz-testcase-5143866241974272
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 631f748491 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
12a4a93b40
avcodec/rv40: Fix runtime error: left shift of negative value
...
Fixes: 630/clusterfuzz-testcase-6608718928019456
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 956472a323 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:33 +02:00
Michael Niedermayer
00870c248e
avcodec/h264_cabac: runtime error: signed integer overflow: 2147483647 + 14 cannot be represented in type 'int'
...
Fixes: 614/clusterfuzz-testcase-4931860079575040
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 258763ad0e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
016a8e7772
avcodec/mpeg4videodec: Fix runtime error: shift exponent -2 is negative
...
Fixes: 612/clusterfuzz-testcase-4707817137111040
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 aa2b75263e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
8f64abc5e2
avcodec/mjpegdec: Fix runtime error: left shift of negative value -507
...
Fixes: 611/clusterfuzz-testcase-5613455820193792
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 c91bdd4524 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
554687bff6
avcodec/eac3dec: Fix runtime error: left shift of negative value
...
Fixes: 610/clusterfuzz-testcase-4831030085156864
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 067485b673 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
b1817a23c2
avcodec/vp6: clear dimensions on failed resolution change in vp6_parse_header()
...
Fixes: 807/clusterfuzz-testcase-6470061042696192
Fixes null pointer dereference
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 967feea5eb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
f8769b1a70
avcodec/vp56: Reset have_undamaged_frame on resolution changes
...
Fixes: timeout in 758/clusterfuzz-testcase-4720832028868608
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 6e913f2129 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Thomas Guilbert
b27bcc32c7
avcodec/vp8: Fix hang with slice threads
...
Fixes: 447860.webm
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9bbc73ae9f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
678dd7cf20
avcodec/vp8: Check for the bitstream end per MB in decode_mb_row_no_filter()
...
Fixes: timeout in 730/clusterfuzz-testcase-5265113739165696 (part 2 of 2)
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Reviewed-by: BBB
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1afd246960 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
45abce9e05
avcodec/vp568: Check that there is enough data for ff_vp56_init_range_decoder()
...
Fixes: timeout in 730/clusterfuzz-testcase-5265113739165696 (part 1 of 2)
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Reviewed-by: BBB
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 55d7371fe0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
efa47b5c99
avcodec/vp8: remove redundant check
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5098a6f627 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
4e30560efc
avcodec/vp56: Require a correctly decoded frame before using vp56_conceal_mb()
...
Fixes timeout with 700/clusterfuzz-testcase-5660909504561152
Fixes timeout with 702/clusterfuzz-testcase-4553541576294400
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 2ce4f28431 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
94d1f07c3b
avcodec/vp3: Do not return random positive values but the buf size
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d8094a303b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
b382722972
avcodec/vp8: Check for bitsteam end in decode_mb_row_no_filter()
...
Fixes timeout with 686/clusterfuzz-testcase-5853946876788736
this shortcuts (i.e. speeds up) the error and
return-to-user when decoding a truncated frame
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Previous version reviewed by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7b5ff7d573 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
d19550189f
avcodec/vp56: Factorize vp56_render_mb() out
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4c0139463c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
5c764f0625
avcodec/vp3dsp: Fix multiple signed integer overflow: 46341 * 47523 cannot be represented in type 'int'
...
Fixes: 664/clusterfuzz-testcase-4917047475568640
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 2b8b7921c5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
3b067c9edc
Add CHECK/SUINT code
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4614bf2caf )
(cherry picked from commit e8d4eacc07 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3f2a09a43f6fade53227804459e6babb1c7248b3)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
0b0f58d462
avcodec/mpeg12dec: Fix runtime error: left shift of negative value -1
...
Fixes: 764/clusterfuzz-testcase-6273034652483584
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 a720b854b0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
2219045914
avcodec/vp56: Clear dimensions in case of failure in the middle of a resolution change
...
Similar code is used elsewhere in vp56 to force a more complete reinit in the future.
Fixes null pointer dereference
Fixes: 707/clusterfuzz-testcase-4717453097566208
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 4bed066377 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
ae82d4f0fa
avcodec/vp56: Implement very basic error concealment
...
This should fix the fate failure due to a truncated last frame.
Alternatively the frame could be dropped.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d34bf886e9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
18eb359953
avcodec/amrwbdec: Fix 2 runtime errors: left shift of negative value -1
...
Fixes: 669/clusterfuzz-testcase-4847965409640448
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 6bd79ba59f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
f7e3422a8f
avcodec/pngdec: Fix runtime error: left shift of 152 by 24 places cannot be represented in type 'int'
...
Fixes: 666/clusterfuzz-testcase-6581447227867136
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 310d2af319 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
e28c0d4888
avcodec/vp56: Fix sign typo
...
Fixes: 664/clusterfuzz-testcase-4917047475568640
The change to fate is due to a truncated last frames which is now detected as damaged.
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 513a349439 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
68f7ebcd8d
avcodec/mpegaudiodec_template: Correct return code on id3 tag discarding
...
Fixes: 665/clusterfuzz-testcase-4863789881098240
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 5d81616be3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
46828511c2
avcodec/rv34: Simplify and factor get_slice_offset() code
...
This also fixes several integer overflows by checking each value before
use.
Fixes: 662/clusterfuzz-testcase-4898131432964096
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 8696f25444 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
5eea0562b9
avcodec/pictordec: Do not read more than nb_planes
...
Fixes undefined behavior
Fixes: 622/clusterfuzz-testcase-5745722022428672
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 01d196a67d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
34450a86c8
avcodec/srtdec: Fix signed integer overflow: 1811992524 * 384 cannot be represented in type 'int'
...
Fixes: 617/clusterfuzz-testcase-6413875723370496
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 c11d3634b0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
00a81ed120
avcodec/pngdec: Check bit depth for validity
...
Fixes: runtime error: shift exponent 132 is too large for 32-bit type 'int'
Fixes: 609/clusterfuzz-testcase-4825202619842560
See 11.2.2 IHDR Image header
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 4279613a26 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
367222af32
avcodec/mpeg12dec: Fix runtime error: left shift of negative value
...
Fixes: 608/clusterfuzz-testcase-603978286392934
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 706757d26d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
7272eb87df
avcodec/wavpacl: Fix runtime error: left shift of negative value -1
...
Fixes: 607/clusterfuzz-testcase-5108792465293312
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 12eebb845a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
Michael Niedermayer
02c51f3232
avformat/http: Check for truncated buffers in http_connect()
...
Reported-by: SleepProgger <security@gnutp.com >
Reviewed-by: Steven Liu <lingjiujianke@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8fa18e042a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-05-20 03:41:32 +02:00
James Almer
a1ad585c8e
avformat/apng: fix setting frame delay when max_fps is set to no limit
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 874eb012f7 )
2017-03-21 20:21:12 -03:00
James Almer
31e65eb84d
swresample/resample: free existing ResampleContext on reinit
...
Fixes memleak.
Reviewed-by: wm4 <nfxjfg@googlemail.com >
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit db7a05dab0 )
2017-03-21 12:19:20 -03:00
James Almer
f7f5a52459
swresample/resample: move resample_free() higher in the file
...
Also make it more readable while at it.
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 2a8a8a2e98 )
Conflicts:
libswresample/resample.c
2017-03-21 12:19:03 -03:00
Carl Eugen Hoyos
518158693e
lavf/mpeg: Initialize a stack variable used by memcmp().
...
Silence a valgrind warning.
Fixes ticket #6160 .
(cherry picked from commit a5c1c7a8b3 )
2017-02-21 02:16:28 +01:00
Carl Eugen Hoyos
92d8106fa6
lavc/avpacket: Initialize a variable in error path.
...
Fixes ticket #6153 .
Tested-by: Tyson Smith
(cherry picked from commit 1d54be2153 )
2017-02-17 10:44:45 +01:00
Michael Niedermayer
523da8eac1
Update for 2.8.11
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:45:54 +01:00
Michael Niedermayer
912cb27f73
avcodec/h264_slice: Clear ref_counts on redundant slices
...
Fixes reading freed memory
Fixes: 568/clusterfuzz-testcase-6107186067406848
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 c03029a835 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Matt Wolenetz
4adc99ecb6
lavf/mov.c: Avoid heap allocation wrap in mov_read_uuid
...
Core of patch is from paul@paulmehta.com
Reference https://crbug.com/643951
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
Check value reduced as the code does not support values beyond INT_MAX
Also the check is moved to a more common place and before integer truncation
(cherry picked from commit 2d453188c2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Matt Wolenetz
8be3724e55
lavf/mov.c: Avoid heap allocation wrap in mov_read_hdlr
...
Core of patch is from paul@paulmehta.com
Reference https://crbug.com/643950
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
Check value reduced as the code does not support larger lengths
(cherry picked from commit fd30e4d57f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Michael Niedermayer
142c1737e3
avcodec/pictordec: Fix logic error
...
Fixes: 559/clusterfuzz-testcase-6424225917173760
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 8c2ea3030a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Michael Niedermayer
61b86ae8ce
avcodec/movtextdec: Fix decode_styl() cleanup
...
Fixes: null pointer dereference
Fixes: 555/clusterfuzz-testcase-5986646595993600
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 e248522d1b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Chris Cunningham
b3ae6cfe11
lavf/matroskadec: fix is_keyframe for early Blocks
...
Blocks are marked as key frames whenever the "reference" field is
zero. This breaks for non-keyframe Blocks with a reference timestamp
of zero.
The likelihood of reference timestamp being zero is increased by a
longstanding bug in muxing that encodes reference timestamp as the
absolute time of the referenced frame (rather than relative to the
current Block timestamp, as described in MKV spec).
Now using INT64_MIN to denote "no reference".
Reported to chromium at http://crbug.com/497889 (contains sample)
(cherry picked from commit ac25840ee3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
James Almer
d053b25b59
configure: bump year
...
Happy new year!
(cherry picked from commit d800d48fc6 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Michael Niedermayer
3aa8440baf
avcodec/pngdec: Check trns more completely
...
Fixes out of array access
Fixes: 546/clusterfuzz-testcase-4809433909559296
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 e477f09d0b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Michael Niedermayer
c9992efd84
avcodec/interplayvideo: Move parameter change check up
...
Fixes out of array read
Fixes: 544/clusterfuzz-testcase-5936536407244800.f8bd9b24_8ba77916_70c2c7be_3df6a2ea_96cd9f14
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b1e2192007 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Michael Niedermayer
87cc0b0474
avcodec/mjpegdec: Check for for the bitstream end in mjpeg_decode_scan_progressive_ac()
...
Fixes timeout
Fixes: 496/clusterfuzz-testcase-5805083497332736
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 3782656631 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Frank Liberato
d59582a567
avformat/flacdec: Check avio_read result when reading flac block header.
...
Return AVERROR_INVALIDDATA if all four bytes aren't present.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 95bde49982 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Michael Niedermayer
17a9e90d1f
avcodec/utils: correct align value for interplay
...
Fixes out of array access
Fixes: 452/fuzz-1-ffmpeg_VIDEO_AV_CODEC_ID_INTERPLAY_VIDEO_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 2080bc3371 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Michael Niedermayer
3aca3f1257
avcodec/vp56: Check for the bitstream end, pass error codes on
...
Fixes timeout
Fixes: 446/fuzz-3-ffmpeg_VIDEO_AV_CODEC_ID_VP6_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 9e6a242755 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Michael Niedermayer
9f2e4c26a0
avcodec/mjpegdec: Check remaining bitstream in ljpeg_decode_yuv_scan()
...
Fixes timeout
Fixes: 445/fuzz-3-ffmpeg_VIDEO_AV_CODEC_ID_MJPEG_fuzzer
Fixes: 456/fuzz-2-ffmpeg_VIDEO_AV_CODEC_ID_JPEGLS_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 755933cb5c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Michael Niedermayer
1febd817b1
avcodec/pngdec: Fix off by 1 size in decode_zbuf()
...
Fixes out of array access
Fixes: 444/fuzz-2-ffmpeg_VIDEO_AV_CODEC_ID_PNG_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 e371f031b9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Tobias Rapp
3f3ee3e62f
avformat/avidec: skip odml master index chunks in avi_sync
...
Fixes pts gaps when reading AVI files > 256GiB generated by FFmpeg.
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6d579d7c1b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:51 +01:00
Michael Niedermayer
8be687a81f
avcodec/mjpegdec: Check for rgb before flipping
...
Fixes assertion failure due to unsupported case
Fixes: 356/fuzz-1-ffmpeg_VIDEO_AV_CODEC_ID_MJPEG_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 25d9643f11 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:50 +01:00
Michael Niedermayer
1827fe0989
avutil/random_seed: Reduce the time needed on systems with very low precission clock()
...
This should fix issues on BSD
CLOCKS_PER_SEC is 128 on BSD while SUSv2 requires it to be a million
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c4152fc42e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:50 +01:00
Michael Niedermayer
02073b5ab1
avutil/random_seed: Improve get_generic_seed() with higher precission clock()
...
Tested-by: Thomas Turner <thomastdt@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit da73d95bad )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:50 +01:00
Michael Niedermayer
1825f7670a
avformat/utils: Print verbose error message if stream count exceeds max_streams
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f0bdd53871 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:50 +01:00
Michael Niedermayer
2647ca4581
avformat/options_table: Set the default maximum number of streams to 1000
...
Fixes CVE-2016-9561, Note the security relevance of this is disputed as
running out of memory can happen with valid files
Suggested-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 30581c51e7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:50 +01:00
Michael Niedermayer
2e44b10418
avutil: Add av_image_check_size2()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f542b152aa )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:50 +01:00
Michael Niedermayer
c6fbff1358
avformat: Add max_streams option
...
This allows user apps to stop OOM due to excessive number of streams
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1296f84495 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:50 +01:00
Michael Niedermayer
774461ea62
avcodec/ffv1enc: Allocate smaller packet if the worst case size cannot be allocated
...
We are checking during encoding if there is enough space as version 4 needs that
check.
Fixes Ticket6005
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 38a7834bbb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:50 +01:00
Michael Niedermayer
94a0a484b7
avcodec/mpeg4videodec: Fix undefined shifts in mpeg4_decode_sprite_trajectory()
...
Fixes: part of 670190.ogg
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8258e36385 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:50 +01:00
Michael Niedermayer
a127f51140
avformat/oggdec: Skip streams in duration correction that did not had their duration set.
...
Fixes: part of 670190.ogg
Fixes integer overflow
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ee2a6f5df8 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:50 +01:00
Michael Niedermayer
07ca8300a6
avcodec/ffv1enc: Fix size of first slice
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit cff1c0edaa )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2017-02-08 21:17:50 +01:00
Andreas Cadhalpun
f7e18dea7a
pgssubdec: reset rle_data_len/rle_remaining_len on allocation error
...
The code relies on their validity and otherwise can try to access a NULL
object->rle pointer, causing segmentation faults.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 842e98b4d8 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2017-02-01 02:29:08 +01:00
Michael Niedermayer
16c0d8aa46
update for ffmpeg 2.8.10
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-06 03:50:50 +01:00
Michael Niedermayer
1ec9fd15b9
avformat/http: Match chunksize checks to master..3.0
...
Fixes warning about impossible condition
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-06 03:30:10 +01:00
Michael Niedermayer
4a947f4385
Changelog: fix typos
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-06 01:19:34 +01:00
Michael Niedermayer
e0cb113f9b
ffserver: Check chunk size
...
Fixes out of array access
Fixes: poc_ffserver.py
Found-by: Paul Cher <paulcher@icloud.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a5d25faa3f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-06 00:59:22 +01:00
Michael Niedermayer
15abba737b
Avoid using the term "file" and prefer "url" in some docs and comments
...
This should make it less ambigous that these are URLs
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a5f27a9c3a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-06 00:59:22 +01:00
Michael Niedermayer
5bfb0b02b6
avformat/rtmppkt: Check for packet size mismatches
...
Fixes out of array access
Found-by: Paul Cher <paulcher@icloud.com >
Reviewed-by: Paul Cher <paulcher@icloud.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7d57ca4d9a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-06 00:59:22 +01:00
Timothy Gu
c472c1b3e7
zmqsend: Initialize ret to 0
...
Fixes CID1396857.
(cherry picked from commit d903b4e3ad )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-06 00:59:22 +01:00
James Almer
e8dfe3f34a
configure: check for strtoull on msvc
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit b52d3574d4 )
2016-12-05 19:19:11 -03:00
Ronald S. Bultje
d3fc5c17de
http: move chunk handling from http_read_stream() to http_buf_read().
...
(cherry picked from commit 845bb40178 )
2016-12-05 16:20:58 -05:00
Ronald S. Bultje
606b21353d
http: make length/offset-related variables unsigned.
...
Fixes #5992 , reported and found by Paul Cher <paulcher@icloud.com >.
(cherry picked from commit 2a05c8f813 )
2016-12-05 16:20:40 -05:00
Michael Niedermayer
fb93771072
Changelog: update
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-04 01:42:53 +01:00
Michael Niedermayer
3f8bb78f3e
avcodec/flacdec: Fix undefined shift in decode_subframe()
...
Fixes undefined behavior
Fixes: 639961-media
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1f5630af51 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-04 01:05:02 +01:00
Michael Niedermayer
a5989651f0
avcodec/get_bits: Fix get_sbits_long(0)
...
Fixes undefined behavior
Fixes: 640889-media
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c72fa43234 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-04 01:03:53 +01:00
Michael Niedermayer
1e512388ee
avformat/ffmdec: Check media type for chunks
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e706e2e775 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 17:46:37 +01:00
Michael Niedermayer
31d46dc97d
avcodec/flacdec: Fix signed integer overflow in decode_subframe_fixed()
...
Fixes undefined behavior
Fixes: 640912-media
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 83a75bf6c3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 17:32:54 +01:00
Michael Niedermayer
5790ce6273
avcodec/flacdsp_template: Fix undefined shift in flac_decorrelate_indep_c
...
Fixes: left shift of negative value
Fixes: 668346-media
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit acc163c6ab )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 17:32:33 +01:00
Michael Niedermayer
f202fefdb0
avformat/oggparsespeex: Check frames_per_packet and packet_size
...
The speex specification does not seem to restrict these values, thus
the limits where choosen so as to avoid multiplicative overflow
Fixes undefined behavior
Fixes: 635422.ogg
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit afcf15b0db )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 04:10:31 +01:00
Michael Niedermayer
3af916db37
avformat/utils: Check start/end before computing duration in update_stream_timings()
...
Fixes undefined behavior
Fixes: 637428.ogg
Found-by: Matt Wolenetz <wolenetz@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 90da187f1d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-03 04:10:19 +01:00
Michael Niedermayer
518beeb72f
Changelog: Update
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-02 00:47:39 +01:00
Michael Niedermayer
46edc6d5ef
avcodec/flac_parser: Update nb_headers_buffered
...
Fixes infinite loop
Fixes: fuzz.flac
Found-by: Frank Liberato <liberato@google.com >
Reviewed-by: Frank Liberato <liberato@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2475858889 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-01 23:50:40 +01:00
Michael Niedermayer
046cc06f5a
avformat/idroqdec: Check chunk_size for being too large
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 744a0b5206 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-01 23:50:40 +01:00
Andreas Cadhalpun
970781f5f2
Update Changelog
2016-11-27 00:47:03 +01:00
Andreas Cadhalpun
d8ec9e97b9
filmstripdec: correctly check image dimensions
...
This prevents a division by zero in read_packet.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 25012c5644 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:36 +01:00
Andreas Cadhalpun
028c87be95
mss2: only use error correction for matching block counts
...
This fixes a heap-buffer-overflow in ff_er_frame_end when decoding mss2
with coded_width/coded_height larger than width/height.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 2566ad98b0 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:36 +01:00
Andreas Cadhalpun
b45e112bbd
softfloat: decrease MIN_EXP to cover full float range
...
floats are not necessarily normalized, so a normalized softfloat needs
MIN_EXP lowered by 23 to cover that range.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 2d6f46d801 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:35 +01:00
Andreas Cadhalpun
56b120630f
libopusdec: default to stereo for invalid number of channels
...
This fixes an out-of-bounds read if avc->channels is 0.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 8c8f543b81 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:35 +01:00
Andreas Cadhalpun
22cd4aa221
sbgdec: prevent NULL pointer access
...
Reviewed-by: Josh de Kock <josh@itanimul.li >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit dbefbb61b7 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:35 +01:00
Andreas Cadhalpun
8a7b2fbf6f
smacker: limit recursion depth of smacker_decode_bigtree
...
This fixes segmentation faults due to stack-overflow caused by too deep
recursion.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 946ecd19ea )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:35 +01:00
Andreas Cadhalpun
8f27508f1c
mxfdec: fix NULL pointer dereference in mxf_read_packet_old
...
Metadata streams have priv_data set to NULL.
Reviewed-by: Josh de Kock <josh@itanimul.li >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit fdb8c455b6 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:35 +01:00
Andreas Cadhalpun
7552f6fc1b
libschroedingerdec: fix leaking of framewithpts
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 3c0328d58d )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:35 +01:00
Andreas Cadhalpun
70ca4ce17a
libschroedingerdec: don't produce empty frames
...
They are not valid and can cause problems/crashes for API users.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit a86ebbf7f6 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:35 +01:00
Andreas Cadhalpun
ccda73a711
softfloat: handle -INT_MAX correctly
...
This is similar to commit 9ac61e73d0 .
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 0edd569466 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:35 +01:00
Andreas Cadhalpun
0b948b1b8d
pnmdec: make sure v is capped by maxval
...
Otherwise put_bits can be called with a value that doesn't fit in the
sample_len, causing an assertion failure.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit cdb5479c9d )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:35 +01:00
Andreas Cadhalpun
f76947fd56
smvjpegdec: make sure cur_frame is not negative
...
This fixes a heap-buffer-overflow detected by AddressSanitizer.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 360bc0d90a )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:34 +01:00
Andreas Cadhalpun
71fa32bbb7
icodec: correctly check avio_read return value
...
It can read less than the requested amount, in which case buf contains
uninitialized data, causing problems like segmentation faults later on.
Also make sure that image->size is positive, so that it can't match a
negative error code.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 89eb398c7f )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:34 +01:00
Andreas Cadhalpun
8a56b31e7c
icodec: fix leaking pkt on error
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 467eece1be )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:34 +01:00
Andreas Cadhalpun
2260c0776a
dvbsubdec: fix division by zero in compute_default_clut
...
This problem was introduced in commit
4b90dcb849 .
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit c82b8ef0e4 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:34 +01:00
Andreas Cadhalpun
5c55f9881e
proresdec_lgpl: explicitly check coff[3] against slice_data_size
...
The implicit checks via v_data_size and a_data_size don't work in the case
'(hdr_size > 7) && !ctx->alpha_info'.
This fixes segmentation faults due to invalid reads.
This problem was introduced in commit
547c2f002a .
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 1e33035ee7 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:34 +01:00
Andreas Cadhalpun
dc821d42a2
escape124: reject codebook size 0
...
It causes a cb_depth of 32, leading to assertion failures in get_bits.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 226d35c845 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:34 +01:00
Andreas Cadhalpun
b3ac458a5a
mpegts: prevent division by zero
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 1bbb18fe82 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:34 +01:00
Andreas Cadhalpun
3148d1c25f
matroskadec: fix NULL pointer dereference in webm_dash_manifest_read_header
...
The code assumes that s->streams[0] is valid.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit ff100c9dd9 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:34 +01:00
Andreas Cadhalpun
f964046c58
mpegaudio_parser: don't return AVERROR_PATCHWELCOME
...
The API does not allow returning AVERROR codes.
It triggers an assert in av_parser_parse2.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 5249706e9d )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:33 +01:00
Andreas Cadhalpun
0cc619e0d7
mxfdec: fix NULL pointer dereference
...
Metadata streams have priv_data set to NULL.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 0efb610611 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:33 +01:00
Andreas Cadhalpun
0e8c44076d
diracdec: check return code of get_buffer_with_edge
...
If it fails, buffers aren't allocated, causing NULL pointer dereferencing.
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit db79dedb1a )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:33 +01:00
Andreas Cadhalpun
a94f846e2d
ppc: pixblockdsp: do unaligned block accesses correctly again
...
This was broken by the following Libav commit:
4c387c7 ppc: dsputil: do unaligned block accesses correctly
The following tests fail due to this:
fate-checkasm
fate-vsynth1-dnxhd-2k-hr-hq fate-vsynth1-dnxhd-edge1-hr
fate-vsynth1-dnxhd-edge2-hr fate-vsynth1-dnxhd-edge3-hr
fate-vsynth1-dnxhd-hr-sq-mov fate-vsynth1-dnxhd-hr-hq-mov
fate-vsynth2-dnxhd-2k-hr-hq fate-vsynth2-dnxhd-edge1-hr
fate-vsynth2-dnxhd-edge2-hr fate-vsynth2-dnxhd-edge3-hr
fate-vsynth2-dnxhd-hr-sq-mov fate-vsynth2-dnxhd-hr-hq-mov
fate-vsynth3-dnxhd-2k-hr-hq fate-vsynth3-dnxhd-edge1-hr
fate-vsynth3-dnxhd-edge2-hr fate-vsynth3-dnxhd-edge3-hr
fate-vsynth3-dnxhd-hr-sq-mov fate-vsynth3-dnxhd-hr-hq-mov
Fixes trac ticket #5508 .
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 3932ccc472 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:33 +01:00
Andreas Cadhalpun
c5fb9df38a
mpeg12dec: unref discarded picture from extradata
...
Otherwise another frame gets referenced into picture, triggering an assert
(from commit 13aae8) in av_frame_ref.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit a92f8edf0c )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:33 +01:00
Andreas Cadhalpun
51ff17d6b9
cavsdec: unref frame before referencing again
...
This fixes asserts (from commit 13aae8) in av_frame_ref and
av_frame_move_ref.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 1966ea012f )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:33 +01:00
Andreas Cadhalpun
e14da0578c
avformat: prevent triggering request_probe assert in ff_read_packet
...
If probe_codec is called with pkt == NULL, it sets probe_packets to 0
and request_probe to -1.
However, request_probe can change when calling s->iformat->read_packet
and thus a probe_packets value of 0 doesn't guarantee a request_probe
value of -1.
In that case calling probe_codec again is necessary to prevent
triggering the assert.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit a5b4476a60 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-11-27 00:46:30 +01:00
Michael Niedermayer
afd0f8f775
Update for 2.8.9
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:27 +01:00
Michael Niedermayer
13c249e2b5
avformat/mpeg: Adjust vid probe threshold to correct mis-detection
...
Fixes: _ij.mp3
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4e5049a230 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:27 +01:00
Michael Niedermayer
698528207a
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-26 15:12:27 +01:00
Michael Niedermayer
1e86f1a646
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-26 15:12:27 +01:00
Michael Niedermayer
ecc5bada26
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-26 15:12:27 +01:00
Michael Niedermayer
b0a5794e30
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-26 15:12:27 +01:00
Michael Niedermayer
63504a2d44
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-26 15:12:27 +01:00
Michael Niedermayer
f9e76d3304
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-26 15:12:26 +01:00
Michael Niedermayer
3213adceb2
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-26 15:12:26 +01:00
Michael Niedermayer
744f78ce0d
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-26 15:12:26 +01:00
Michael Niedermayer
147a387fba
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-26 15:12:26 +01:00
Michael Niedermayer
2312d1d979
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-26 15:12:26 +01:00
Michael Niedermayer
1604a2b1e6
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-26 15:12:26 +01:00
Michael Niedermayer
f39522b6e7
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-26 15:12:26 +01:00
Michael Niedermayer
09411a7d5e
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-26 15:12:26 +01:00
Michael Niedermayer
ef32b162e8
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-26 15:12:26 +01:00
Michael Niedermayer
41b1ec0810
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-26 15:12:26 +01:00
Michael Niedermayer
e3f8b32279
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-26 15:12:26 +01:00
Michael Niedermayer
fe4c6aeb99
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 >
(cherry picked from commit c92f55847a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:26 +01:00
Michael Niedermayer
3177ea512f
avcodec/dvdsubdec: Fix buf_size check
...
Fixes out of array access
Found-by: Thomas Garnier using libFuzzer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 25ab1a65f3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:26 +01:00
Ronald S. Bultje
e25441912b
vp9: change order of operations in adapt_prob().
...
This is intended to workaround bug "665 Integer Divide Instruction May
Cause Unpredictable Behavior" on some early AMD CPUs, which causes a
div-by-zero in this codepath, such as reported in Mozilla bug #1293996 .
Note that this isn't guaranteed to fix the bug, since a compiler is free
to reorder instructions that don't depend on each other. However, it
appears to fix the bug in Firefox, and a similar patch was applied to
libvpx also (see Chrome bug #599899 ).
(cherry picked from commit be885da342 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:26 +01:00
Michael Niedermayer
abe16359ba
avcodec/interplayvideo: Check side data size before use
...
Fixes out of array read
Found-by: Thomas Garnier using libFuzzer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 85d23e5cbc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:26 +01:00
Michael Niedermayer
b9ab4db9f9
avformat/mxfdec: Check size to avoid integer overflow in mxf_read_utf16_string()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit fecb3e82a4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:25 +01:00
Michael Niedermayer
8328c07fb1
avcodec/mpegvideo_enc: Clear mmx state in ff_mpv_reallocate_putbitbuffer()
...
This function must be called from the mb or slice encoding loop and MMX state may not
be clean there
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 03ec6b780c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:25 +01:00
Michael Niedermayer
865e3f5553
avcodec/utils: Clear MMX state before returning from avcodec_default_execute*()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4f96f9d111 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:25 +01:00
Moritz Barsnick
d1c87a4a6f
cmdutils: fix typos
...
Signed-off-by: Moritz Barsnick <barsnick@gmx.net >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3e5d27d7a7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:25 +01:00
Moritz Barsnick
b480ca4dbd
lavfi: fix typos
...
Signed-off-by: Moritz Barsnick <barsnick@gmx.net >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f4e4bde1f4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:25 +01:00
Moritz Barsnick
bb83ff8b41
lavc: fix typos
...
Signed-off-by: Moritz Barsnick <barsnick@gmx.net >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3305f71025 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:25 +01:00
Moritz Barsnick
d609986f39
tools: fix grammar error
...
Signed-off-by: Moritz Barsnick <barsnick@gmx.net >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f71c98ee12 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:25 +01:00
Shivraj Patil
b9ec80322b
avutil/mips/generic_macros_msa: rename macro variable which causes segfault for mips r6
...
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c1cc13cd2a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-26 15:12:25 +01:00
Ronald S. Bultje
62b2b2195b
videodsp: fix 1-byte overread in top/bottom READ_NUM_BYTES iterations.
...
This can overread (either before start or beyond end) of the buffer in
Nx1 (i.e. height=1) images.
Fixes mozilla bug 1240080.
(cherry picked from commit 0f88b3f82f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-10-05 03:06:45 +02:00
Michael Niedermayer
239f75d6c3
avformat/avidec: Check nb_streams in read_gab2_sub()
...
Fixes null pointer dereference
Fixes: 1/null_point.avi
Found-by: 连一汉 <lianyihan@360.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2679ad4773 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-10-05 03:06:45 +02:00
Michael Niedermayer
a772613100
avformat/avidec: Remove ancient assert
...
This assert can with crafted files fail, a warning is already printed
for this case.
Fixes assertion failure
Fixes:1/assert.avi
Found-by: 连一汉 <lianyihan@360.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 14bac7e00d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-10-05 03:06:45 +02:00
Sasi Inguva
ca216c71c7
lavc/movtextdec.c: Avoid infinite loop on invalid data.
...
Signed-off-by: Sasi Inguva <isasi@google.com >
(cherry picked from commit 7e9e1b7070 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-09-28 11:12:20 +02:00
Michael Niedermayer
ab737ab31d
avcodec/ansi: Check dimensions
...
Fixes: 1.avi
Found-by: 连一汉 <lianyihan@360.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 69449da436 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-09-26 21:43:04 +02:00
Michael Niedermayer
69b00a7fb6
avcodec/cavsdsp: use av_clip_uint8() for idct
...
Fixes out of array read
Fixes: 1.swf
Found-by: 连一汉 <lianyihan@360.cn >
Tested-by: 连一汉 <lianyihan@360.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0e318f110b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-09-23 18:19:56 +02:00
Michael Niedermayer
d828aabf03
Changelog: Update
2016-09-18 01:18:35 +02:00
Michael Niedermayer
0ffdabb58d
avformat/movenc: Check packet in mov_write_single_packet() too
...
Fixes assertion failure
Found-by: durandal117
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2834313933 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-09-18 00:18:11 +02:00
Michael Niedermayer
e1ab851da6
avformat/movenc: Factor check_pkt() out
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit deabcd2c05 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-09-18 00:18:11 +02:00
Xinzheng Zhang
0bdfdd6d2f
avformat/utils: fix timebase error in avformat_seek_file()
...
When there is only one stream and stream_index has not specified,
The ts has been transferd by the timebase of stream0 without modifying the stream_index
In this condation it cause seek failure.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ecc04b4f2f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-09-18 00:18:11 +02:00
Michael Niedermayer
f8dcc9e718
avcodec/g726: Add missing ADDB output mask
...
Fixes: 1.poc
Fixes out of array read
Found-by: 连一汉 <lianyihan@360.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a5af1240fc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-09-18 00:18:11 +02:00
Michael Niedermayer
175a95bfdd
avcodec/avpacket: clear side_data_elems
...
Fixes null pointer dereference
Found-by: 连一汉 <lianyihan@360.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5e1bf9d8c0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-09-18 00:18:11 +02:00
Michael Niedermayer
ac60619acd
avcodec/ccaption_dec: Use simple array instead of AVBuffer
...
This is simpler and fixes an out of array read, fixing it with AVBuffers
would be more complex
Fixes: e00d9e6e50e5495cc93fea41147b97bb/asan_heap-oob_12dcdbb_8798_b32a97ea722dd37bb5066812cc674552.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 752e6dfa3e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-09-18 00:18:11 +02:00
Michael Niedermayer
48c51b796a
swscale/swscale_unscaled: Try to fix Rgb16ToPlanarRgb16Wrapper() with slices
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e57d99dd4e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-09-18 00:18:11 +02:00
Michael Niedermayer
26eccf4bd8
swscale/swscale_unscaled: Fix packed_16bpc_bswap() with slices
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 47bc1bdafb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-09-18 00:18:11 +02:00
Michael Niedermayer
8ddeae57ae
avformat/avidec: Fix infinite loop in avi_read_nikon()
...
Fixes: 360/test.poc
Found-by: 连一汉 <lianyihan@360.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e4e4a9cad7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-09-18 00:18:11 +02:00
Tobias Rapp
c32ce247a0
cmdutils: fix implicit declaration of SetDllDirectory function
...
Pre-processor check changed by commiter.
Signed-off-by: James Almer <jamrial@gmail.com >
2016-08-29 20:02:24 -03:00
James Almer
2f9bc30956
cmdutils: check for SetDllDirectory() availability
...
It's only available on Windows XP or newer.
Should fix compilation with mingw32 using the default OS target.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2016-08-26 13:12:02 +02:00
Michael Niedermayer
562f2ba4ed
avcodec/aacenc: Tighter input checks
...
Fixes occurance of NaN/Inf leading to assertion failures and out of array access
Fixes: d1c38a09acc34845c6be3a127a5aacaf/signal_sigsegv_3982225_6121_d18bd5451d4245ee09408f04badd1b83.wmv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 77bf96b047 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-23 12:36:25 +02:00
Michael Niedermayer
5a96b4b443
libavcodec/wmalosslessdec: Check the remaining bits
...
Fixes assertion failure
Fixes: 24ebfda03228b5cc1ef792608cfba458/signal_sigabrt_7ffff6ae7c37_6473_3fa8a111dbc752b1a7c411c5ab79aaa4.wma
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 67318187fb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-21 21:11:47 +02:00
Michael Niedermayer
33ec0280f3
avcodec/diracdec: Check numx/y
...
Fixes division by 0
Fixes: 60261c4469ba3e11059890fb2832a515/asan_generic_135e694_2790_beb94eaa0aeb7d11c0437375a8964a99.drc
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a31e08fa1a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-20 19:40:26 +02:00
Michael Niedermayer
2b135f266d
avcodec/indeo2: check ctab
...
Fixes out of array access
Fixes: 6b73fa392ac808f02e95a4e0a5770026/asan_static-oob_1b15f9a_1969_e7778535e5f27225fe0d6ded14721430.AVI
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9ffe44c5c7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-19 14:47:39 +02:00
Michael Niedermayer
e965fedf7e
avformat/swfdec: Fix inflate() error code check
...
Fixes infinite loop
Fixes endless.poc
Found-by: 连一汉 <lianyihan@360.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a453bbb68f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-19 11:03:50 +02:00
Michael Niedermayer
7132e71a84
Update for FFmpeg 2.8.8
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 22:26:37 +02:00
Michael Niedermayer
7a2329fac1
avcodec/h264: Put context_count check back
...
Fixes assertion failure
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f883f0b0bd )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 20:25:14 +02:00
Hendrik Leppkes
65fff8e71a
cmdutils: remove the current working directory from the DLL search path on win32
...
Reviewed-by: Matt Oliver <protogonoi@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3bf142c773 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 20:25:13 +02:00
Michael Niedermayer
3988470ee3
avcodec/raw: Fix decoding of ilacetest.mov
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit bbec14de31 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 20:25:13 +02:00
Michael Niedermayer
3a6b27caf8
avcodec/ffv1enc: Fix assertion failure with non zero bits per sample
...
Fixes Ticket5736
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c1bfeda5a3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 20:25:13 +02:00
Michael Niedermayer
942c3bfbdf
avformat/oggdec: Fix integer overflow with invalid pts
...
If negative pts are possible for some codecs in ogg then the code needs to be
changed to use signed values.
Found-by: Thomas Guilbert <tguilbert@google.com >
Fixes: clusterfuzz_usan-2016-08-02
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c5cc3b08e5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 20:25:13 +02:00
Michael Niedermayer
486aa4fe39
ffplay: Fix invalid array index
...
Found-by: Thomas Guilbert <tguilbert@google.com >
Fixes: clusterfuzz_usan-2016-08-02
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6cd9a8b67a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 20:25:13 +02:00
Michael Niedermayer
da12d544bf
avcodec/vp9_parser: Check the input frame sizes for being consistent
...
Suggested-by: BBB
Fixed-by: BBB
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 77b0f3f26d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 20:25:13 +02:00
Kacper Michajłow
73e09e371b
libavformat/rtpdec_asf: zero initialize the AVIOContext struct
...
This fixes crash in avformat_open_input() when accessing
protocol_whitelist field.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e947b75b1c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 20:25:13 +02:00
Kacper Michajłow
d3ecb24539
libavutil/opt: Small bugfix in example.
...
Fix const corectness and zero init the struct. This example code would actually crash when initializing string.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 69630f4d30 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 20:25:13 +02:00
Sasi Inguva
0f6e244bb0
libx264: Increase x264 opts character limit to 4096
...
Signed-off-by: Sasi Inguva <isasi@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 282477bf45 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 20:25:13 +02:00
Michael Niedermayer
054db63120
avformat/mov: Check sample size
...
Fixes integer overflow
Fixes: poc.mp4
Found-by: ajax secure <ajax4sec@hotmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8a3221cc67 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 20:25:13 +02:00
Michael Niedermayer
4a0b0cffc1
avformat/format: Fix registering a format more than once and related races
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4cc896ea5f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 20:25:13 +02:00
Michael Niedermayer
9fefd76eec
avcodec/flac_parser: Raise threshold for detecting invalid data
...
Fixes regression from Ticket5428
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b0b3676e13 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
087bd8fbdf
avfilter/vf_telecine: Make frame writable before writing into it
...
Fixes Ticket 5627
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit fa0097e008 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
40ffbe7678
avcodec/mpc8: Correct end truncation
...
Fixes Ticket5478
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b21f674876 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
ed7fe48445
avcodec/mpegvideo: Do not clear the parse context during init
...
It is allocated before, this cannot work
Fixes Ticket5613
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 24f5136196 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
d9ad05abce
MAINTAINERs cleanup (remove myself from things i de facto dont maintain)
...
x86 is maintained entirely by others these days
ML, mostly too
remove myself from a few spots that have other maintainers and where i
just dont know the code that well anyway to do an ideal job
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit bb5bc08ba6 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
bfca58ee2f
avcodec/h264: Fix off by 1 context count
...
Fixes fate-h264-xavc-4389 with slice threads
(cherry picked from commit 27c1eae55f )
Conflicts:
libavcodec/h264.c
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
8a32f19d5b
avcodec/alsdec: Check r to prevent out of array read
...
No testcase known
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c36fc857b5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Umair Khan
1dd34bdb09
avcodec/alsdec: fix max bits in ltp prefix code
...
The maximum number of bits int the prefix code for
p(0) is 4. By setting it as 3, we were missing the
last 0 bit.
This fixes bug #4715 present on the trac.
Signed-off-by: Umair Khan <omerjerk@gmail.com >
Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5d64ba9d18 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
04987035ff
avcodec/utils: check skip_samples signedness
...
Fixes Ticket5528
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 153ab83bd3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
a4484854db
avformat/mpegts: Do not trust BSSD descriptor, it is sometimes not an S302M stream
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a5eb70ad95 )
Conflicts:
libavformat/mpegts.c
2016-08-15 18:54:34 +02:00
Michael Niedermayer
003fa5c3e3
avcodec/bmp_parser: Check fsize
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 43a4276c69 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
166921c23e
avcodec/bmp_parser: reset state
...
Fixes part of ticket 5598
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 37005e65eb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
591c0b527c
avcodec/bmp_parser: Fix remaining size
...
Fixes part of ticket 5598
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 250b620d29 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
731848ef80
avcodec/bmp_parser: Fix frame_start_found in cross frame cases
...
Fixes part of ticket 5598
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit bfe945ac3a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
76fd8145a1
avfilter/af_amix: dont fail if there are no samples in output_frame()
...
Fixes Ticket5326
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit abc957e896 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Vivekanand
5af0ada442
avformat/allformats: Making av_register_all() thread-safe.
...
When multiple threads tries to call av_register_all(), the first thread sets
initialized to 1 and do the register process. At the same time, other thread might
also call av_register_all(), which returns immediately because initialized is set to 1
(even when it has not completed registering codecs). We can avoid this problem
if we set initialised to 1 while exiting from function.
Github: Closes #196
(cherry picked from commit b092ee701f )
Conflicts:
libavformat/allformats.c
2016-08-15 18:54:34 +02:00
Michael Niedermayer
ffb503c9a1
avcodec/mpegvideo: Deallocate last/next picture earlier
...
Fixes regression with mplayers direct rendering and reduces buffer count
pressure in some cases
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 39c0b22df4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
2bbbd3e50a
avcodec/bmp_parser: Fix state
...
Fixes Ticket5598
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d0388bd32e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Thomas Guilbert
669fc1338f
avformat/oggparseopus: Fix Undefined behavior in oggparseopus.c and libavformat/utils.c
...
Fixes: usan_granule_overflow
constant type fix by commiter
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1a82d2cf8f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
9fe1012910
doc/developer.texi: Add a code of conduct
...
See: [FFmpeg-devel] [Vote] Code of Conduct
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 89e9393022 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
90b27febc6
avformat/avidec: Detect index with too short entries
...
Fixes Ticket5498
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d08f2c172f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Chris Cunningham
c1c6cb21b7
avformat/utils: Check negative bps before shifting in ff_get_pcm_codec_id()
...
Fixes: undefined shift.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2875745d35 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
2e0af764b3
avformat/utils: Do not compute the bitrate from duration == 0
...
Fixes division by 0 in fate-acodec-ra144
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 635b2ec5f2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
8857dc6cd8
ffmpeg: Check that r_frame_rate is set before attempting to use it
...
Avoids unexpected occurance and dependency on NaN behavior and divisions by 0
Testcase: fate-lavf-fate-avi_cram
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6085d6b2ae )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
67c7f8ca14
swresample/rematrix: Use clipping s16 rematrixing if overflows are possible
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2f76157eb0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
500cf2e159
swresample/rematrix: Use error diffusion to avoid error in the DC component of the matrix
...
This fixes the sum of the integer coefficients ending up summing to a value
larger than the value representing unity.
This issue occurs with qN0.dts when converting to stereo
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7fe81bc4f8 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Chris Cunningham
345231336f
libavformat/oggdec: Free stream private when header parsing fails.
...
Leaking this private structure opens up the possibility that it may
be re-used when parsing later packets in the stream. This is
problematic if the later packets are not the same codec type (e.g.
private allocated during Vorbis parsing, but later packets are Opus
and the private is assumed to be the oggopus_private type in
opus_header()).
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 542f725964 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
fc6f314838
avformat/utils: Check bps before using it in a shift in ff_get_pcm_codec_id()
...
Fixes undefined shift
Fixes: usan_shift
Found-by: Thomas Guilbert <tguilbert@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ea791c080d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
3bbef6082a
avformat/oggparseopus: Check that granule pos is within the supported range
...
Larger values would imply file durations of astronomic proportions and cause
overflows
Fixes integer overflow
Fixes: usan_int64_overflow
Found-by: Thomas Guilbert <tguilbert@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8efaee3710 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
0aaf66fb2e
avcodec/mjpegdec: Do not try to detect last scan but apply idct after all scans for progressive jpeg
...
Fixes: IMG-20160418-WA0002.jpg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit deaf58abf2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Michael Niedermayer
330f4ef48c
avformat/options_table: Add missing identifier for very strict compliance
...
Fixes Ticket5443
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 11db7eee9b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-08-15 18:54:34 +02:00
Luca Barbato
8887dafda1
librtmp: Avoid an infiniloop setting connection arguments
...
The exit condition was missing.
Signed-off-by: Timothy Gu <timothygu99@gmail.com >
(cherry picked from commit e85d38c20a )
Signed-off-by: Timothy Gu <timothygu99@gmail.com >
2016-07-26 12:08:58 -07:00
James Almer
e9b7ae08d6
avformat/oggparsevp8: fix pts calculation on pages ending with an invisible frame
...
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 5adfbd3918 )
2016-07-25 09:59:54 -03:00
Michael Niedermayer
da4ea97161
Changelog: update
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-29 13:27:40 +02:00
Michael Niedermayer
4e4afe29b9
avcodec/motion_est: Attempt to fix "short data segment overflowed" on IA64
...
This decreases the MV related encoding table sizes
This should have little effect on real world video encoding performance
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d7c75a5db0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-29 13:04:17 +02:00
Michael Niedermayer
2a15860227
avformat/ffmdec: Check pix_fmt
...
Fixes crash
Fixes Ticket5412
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 78baa450d9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-28 23:26:45 +02:00
Michael Niedermayer
66443b0cf3
update for 2.8.7
2016-04-27 05:43:39 +02:00
Michael Niedermayer
58a7500492
avcodec/ttaenc: Reallocate packet if its too small
...
Fixes assertion failure
Fixes Ticket5394
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 005c61c6b8 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:12 +02:00
Jan Ekström
3003277103
pgssubdec: fix subpicture output colorspace and range
...
Functionality used before didn't widen the values from limited to
full range. Additionally, now the decoder uses BT.709 where it
should be used according to the video resolution.
Default for not yet set colorimetry is BT.709 due to most observed
HDMV content being HD.
BT.709 coefficients were gathered from the first two parts of BT.709
to BT.2020 conversion guide in ARIB STD-B62 (Pt. 1, Chapter 6.2.2).
They were additionally confirmed by manually calculating values.
Fixes #4637
(cherry picked from commit 9779b62624 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:12 +02:00
Michael Niedermayer
05b33258e3
avcodec/ac3dec: Reset SPX when switching from EAC3 to AC3
...
Fixes Ticket5319
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9ac154d1fa )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:12 +02:00
Michael Niedermayer
c6e3682a0c
avfilter/vf_drawtext: Check return code of load_glyph()
...
Fixes segfault
Fixes Ticket5347
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2e67a99fbc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:12 +02:00
Paul B Mahol
e80a4ce69f
avcodec/takdec: add code that got somehow lost in process of REing
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
(cherry picked from commit 38797a8033 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:12 +02:00
Paul B Mahol
edc61e3aba
avcodec/apedec: fix decoding of stereo files with one channel full of silence
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
(cherry picked from commit 9149e9c0ba )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:12 +02:00
Michael Niedermayer
5127cb2e78
avcodec/avpacket: Fix off by 5 error
...
Fixes out of array read
Fixes: mozilla bug 1266129
Found-by: Tyson Smith
Tested-by: Tyson Smith
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9f36ea57ae )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:12 +02:00
Ivan
70b3e170f9
avcodec/h264: Fix for H.264 configuration parsing
...
Sometimes video fails to decode if H.264 configuration changes mid stream.
The reason is that configuration parser assumes that nal_ref_idc is equal to 11b
while actually some codecs but 01b there. The H.264 spec is somewhat
vague about this but it looks like it allows any non-zero nal_ref_idc for sps/pps.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3a727606c4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:12 +02:00
Michael Niedermayer
4e174d95f5
avcodec/bmp_parser: Ensure remaining_size is not too small in startcode packet crossing corner case
...
Fixes Ticket 5438
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8e26bdd59b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Marios Titas
21fb4d1282
avfilter/src_movie: fix how we check for overflows with seek_point
...
Currently, if the movie source filter is used and a seek_point is
specified on a file that has a negative start time, ffmpeg will fail.
An easy way to reproduce this is as follows:
$ ffmpeg -vsync passthrough -filter_complex 'color=d=10,setpts=PTS-1/TB' test.mp4
$ ffmpeg -filter_complex 'movie=filename=test.mp4:seek_point=2' -f null -
The problem is caused by checking for int64_t overflow the wrong way.
In general, to check whether a + b overflows, it is not enough to do:
a > INT64_MAX - b
because b might be negative; the correct way is:
b > 0 && > a > INT64_MAX - b
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c1f9734f97 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Aaron Boxer
b5d4b1731e
avcodec/j2kenc: Add attribution to OpenJPEG project:
...
http://ghostscript.com/~tor/gs-browse/gs/openjpeg/libopenjpeg/t1.c
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b6b4b0a65e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Michael Niedermayer
ef54c14425
avcodec/h264_slice: Check PPS more extensively when its not copied
...
Fixes Ticket5371
Fixes null pointer dereference
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c50be7a52b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Michael Niedermayer
a35e6ec1bd
avcodec/libutvideodec: copy frame so it has reference counters when refcounted_frames is set
...
Reviewed-by: maintainer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0cd9ff4e3a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Ico Doornekamp
a286f1a5ff
avformat/rtpdec_jpeg: fix low contrast image on low quality setting
...
Original mail and my own followup on ffmpeg-user earlier today:
I have a device sending out a MJPEG/RTP stream on a low quality setting.
Decoding and displaying the video with libavformat results in a washed
out, low contrast, greyish image. Playing the same stream with VLC results
in proper color representation.
Screenshots for comparison:
http://zevv.nl/div/libav/shot-ffplay.jpg
http://zevv.nl/div/libav/shot-vlc.jpg
A pcap capture of a few seconds of video and SDP file for playing the
stream are available at
http://zevv.nl/div/libav/mjpeg.pcap
http://zevv.nl/div/libav/mjpeg.sdp
I believe the problem might be in the calculation of the quantization
tables in the function create_default_qtables(), the attached patch
solves the issue for me.
The problem is that the argument 'q' is of the type uint8_t. According to the
JPEG standard, if 1 <= q <= 50, the scale factor 'S' should be 5000 / Q.
Because the create_default_qtables() reuses the variable 'q' to store the
result of this calculation, for small values of q < 19, q wil subsequently
overflow and give wrong results in the calculated quantization tables. The
patch below uses a new variable 'S' (same name as in RFC2435) with the proper
range to store the result of the division.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e3e6a2cff4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Michael Niedermayer
d7c15fb25a
avcodec/mjpegenc_common: Store approximate aspect if exact cannot be stored
...
Fixes Ticket5244
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 068026b0f7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Mark Thompson
5c289c932f
lavc/hevc: Allow arbitrary garbage in bytestream as long as at least one NAL unit is found.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit fbec157ea0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Michael Niedermayer
e8b1ce8d1b
avcodec/resample: Remove disabled and faulty code
...
Fixes Ticket5345
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 50ef7361cb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Luca Barbato
d77e1c712b
indeo2: Fix banding artefacts
...
Rename luma table to delta table and change how it is used.
CC: libav-stable@libav.org
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
(cherry picked from commit f8c34f4b8d )
(cherry picked from commit 73f3c8f73e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Luca Barbato
d2e473a245
indeo2data: K&R formatting cosmetics
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
(cherry picked from commit d4066a7024 )
(cherry picked from commit 522ab0b9a9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Przemysław Sobala
4818e074a0
avcodec/imgconvert: Support non-planar colorspaces while padding
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0d097a869c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Michael Niedermayer
7dac928e61
avutil/random_seed: Add the runtime in cycles of the main loop to the entropy pool
...
This should theoretically improve the randomness slightly
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2540d884f3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Martin Cracauer
49fc295612
avutil/channel_layout: AV_CH_LAYOUT_6POINT1_BACK not reachable in parsing
...
Trying to make heads and tails out of DTS 6.1 I can across this typo.
I also noticed that this wiki page is incorrect or misleading, the
channel order for 6.1 given does not match the source code. At the
least it should be clarified that the layout given does not apply to
DTS. https://trac.ffmpeg.org/wiki/AudioChannelManipulation
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 73d1398f0c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Michael Niedermayer
d10f4744ff
avformat/concatdec: set safe mode to enabled instead of auto
...
This is safer, as a selected demuxer could still mean that it was auto-detected
by a user application
Reviewed-previously-by: Nicolas George <george@nsup.org >
Reviewed-previously-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 689211d572 )
Conflicts:
libavformat/concatdec.c
2016-04-27 04:40:11 +02:00
Michael Niedermayer
bf76124c51
avformat/utils: fix dts from pts code in compute_pkt_fields() during ascending delay
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit de1de49324 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Boris Nagels
48c25d0512
avformat/rtpenc: Fix integer overflow in NTP_TO_RTP_FORMAT
...
RTCP synchronization packet was broken since commit in ffmpeg version > 2.8.3
(commit: e04b039b15 ) Since this commit (2e814d0329 )
"rtpenc: Simplify code by introducing a macro for rescaling NTP timestamps", NTP_TO_RTP_FORMAT
uses av_rescale_rnd() function to add the data to the packet.
This causes an overflow in the av_rescale_rnd() function and it will return INT64_MIN.
Causing the NTP stamp in the RTCP packet to have an invalid value.
Github: Closes #182
Reverting commit '2e814d0329aded98c811d0502839618f08642685' solves the problem.
(cherry picked from commit 1109ed7973 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Michael Niedermayer
69942c4f6d
avformat/cache: Fix memleak of tree entries
...
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 554f6e930c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Rodger Combs
7aaab36874
lavf/mov: downgrade sidx errors to non-fatal warnings; fixes trac #5216
...
(cherry picked from commit 22dbc1caaf )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Rodger Combs
36e5854801
lavf/mov: fix sidx with edit lists
...
(cherry picked from commit 3617e69d50 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
Michael Niedermayer
82492c3a96
avcodec/mjpegdec: Fix decoding slightly odd progressive jpeg
...
Fixes: ebd58db6-dc86-11e5-91c2-59daeddf50c7.jpg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c6f4720b86 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-04-27 04:40:11 +02:00
James Almer
175110a041
libwebpenc_animencoder: print library messages in verbose log levels
...
Reviewed-by: James Zern <jzern@google.com >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit f875ba4873 )
2016-03-17 12:57:23 -03:00
James Almer
76c157cfd7
libwebpenc_animencoder: zero initialize the WebPAnimEncoderOptions struct
...
This zeroes the WebPAnimEncoderOptions.verbose field, silencing library info messages
printed to stderr.
Reviewed-by: James Zern <jzern@google.com >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 626b6b769c )
2016-03-17 12:57:20 -03:00
Paul B Mahol
f9f9f31c6c
doc/utils: fix typo for min() description
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
(cherry picked from commit bdf474bcff )
Signed-off-by: Timothy Gu <timothygu99@gmail.com >
2016-03-02 16:44:18 -08:00
Michael Niedermayer
800334947d
avcodec/avpacket: clear priv in av_init_packet()
...
This should fix leaving uninitialized pointers in priv which can confuse
user applications.
See: https://github.com/golang/go/issues/14426
Only for release branches
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-02-24 16:56:12 +01:00
Michael Niedermayer
4ccb97650a
swscale/utils: Fix chrSrcHSubSample for GBRAP16
...
Fixes part of Ticket5264
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 67e5bd0c50 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-02-24 00:04:51 +01:00
Michael Niedermayer
a3d698dcb1
swscale/input: Fix GBRAP16 input
...
Fixes part of Ticket5264
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit df36257a53 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-02-24 00:04:17 +01:00
Carl Eugen Hoyos
1e9aa7907e
postproc: fix unaligned access
...
Based on 59074310 by Andreas Cadhalpun.
Fixes ticket #5259 .
(cherry picked from commit 2aa21eec1a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-02-23 18:01:08 +01:00
Michael Niedermayer
23ef5996a5
avutil/pixdesc: Make get_color_type() aware of CIE XYZ formats
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1ec7a70380 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-02-22 03:50:51 +01:00
Michael Niedermayer
b3a64fc039
avcodec/h264: Execute error concealment before marking the frame as done.
...
Fixes race condition causing artifacts
Fixes Ticket4122
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 98a0053d0f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-02-19 02:07:46 +01:00
Michael Niedermayer
21a6b7930e
swscale/x86/output: Fix yuv2planeX_16* with unaligned destination
...
Reviewed-by: BBB
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f6492a2ea8 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-02-17 05:17:35 +01:00
Michael Niedermayer
530192b0e0
swscale/x86/output: Move code into yuv2planeX_mainloop
...
Reviewed-by: BBB
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d07f6e5f1c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-02-17 05:17:18 +01:00
KO Myung-Hun
8dd71d0bd4
MAINTAINERS: add myself as an OS/2 maintainer
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 346ec91764 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-02-15 13:22:45 +01:00
Michael Niedermayer
536f6c4ec2
avutil/frame: Free destination qp_table_buf in frame_copy_props()
...
Fixes memleak
Fixes: Ticket4899
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4099e4a77d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-02-13 21:08:23 +01:00
Michael Niedermayer
af21d609a0
Update for 2.8.6
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 16:23:43 +01:00
Michael Niedermayer
b15ae71305
avcodec/jpeg2000dec: More completely check cdef
...
Fixes out of array access
Fixes: j2k-poc.bin
Found-by: Lucas Leong <wmliang.tw@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0aada30510 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Michael Niedermayer
6fec0dbd2e
avutil/opt: check for and handle errors in av_opt_set_dict2()
...
Previously errors could result in random entries to be lost.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f3ace85d88 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Paul B Mahol
0dc379cfa6
avcodec/flacenc: fix calculation of bits required in case of custom sample rate
...
Sample rate of 11025 takes 16 bits but previous code would pick only 8.
Fixes assertion failure.
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com >
Signed-off-by: Paul B Mahol <onemda@gmail.com >
(cherry picked from commit 3e7d684912 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Michael Niedermayer
b432d883e6
avformat: Document urls a bit
...
Spell-checked-by: Moritz Barsnick <barsnick@gmx.net >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3130556c0e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Michael Niedermayer
736e42bc33
avformat/libquvi: Set default demuxer and protocol limitations
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 15cc98a0f3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Michael Niedermayer
cb88f428b3
avformat/concat: Check protocol prefix
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8e32d01432 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Michael Niedermayer
e0d53cbeef
doc/demuxers: Document enable_drefs and use_absolute_path
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9a8034b8bc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Michael Niedermayer
9819998342
avcodec/mjpegdec: Check for end for both bytes in unescaping
...
Fixes assertion failure
Fixes: c40c779601b77dc6e19aaea0b04b9751/signal_sigabrt_7ffff6ae7cb7_5769_b94f6ec70caecb2d3d76b4771b109ac1.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 509c9e74e5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Michael Niedermayer
85cfcb87ff
avcodec/mpegvideo_enc: Check for integer overflow in ff_mpv_reallocate_putbitbuffer()
...
Fixes assertion failure
Fixes: 6568d187979ce17878b6fe5fbbb89142/signal_sigabrt_7ffff6ae7cb7_7176_564bbc6741bdcf907f5c4e685c9a77a2.mpg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b65efbc0f4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Michael Niedermayer
971f47f2eb
avformat/avformat: Replace some references to filenames by urls
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 41e07390e0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Michael Niedermayer
00393c56da
avcodec/wmaenc: Check ff_wma_init() for failure
...
Fixes null pointer dereference
Fixes: c4faf8280ba366bf00a79d425f2910a8/signal_sigsegv_1f96477_5177_1448ba7e4125faceb966f44ceb69abfa.qcp
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 19e456d48c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Michael Niedermayer
f77b656b6e
avcodec/mpeg12enc: Move high resolution thread check to before initializing threads
...
Cleaner solution is welcome!
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a53fbda9dc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Michael Niedermayer
8ed4b44657
avformat/img2dec: Use AVOpenCallback
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b750b67d13 )
Conflicts:
libavformat/img2dec.c
2016-01-28 15:53:54 +01:00
Michael Niedermayer
642c54270b
avformat/avio: Limit url option parsing to the documented cases
...
This feature is not know much or used much AFAIK, and it might be helpfull in
exploits.
No specific case is known where it can be used in an exploit though
subsequent commits depend on this commit though
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 984d58a344 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Michael Niedermayer
d64ff3a6a9
avformat/img2dec: do not interpret the filename by default if a IO context has been opened
...
With this, user applications which use custom IO and have set a IO context will not have
their already opened IO context ignored and glob/seq being interpreted
Comments and tests from maintainers of user apps are welcome!
Liked-by: wm4 <nfxjfg@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7ccedc1c78 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Michael Niedermayer
c6f6829ce6
avcodec/ass_split: Fix null pointer dereference in ff_ass_style_get()
...
Fixes: 55d71971da50365d542ed14b65565fe1/signal_sigsegv_4765a4_8499_f146af090a94f591d6254515c7700ef5.mkv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 158f0545d8 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:54 +01:00
Derek Buitenhuis
b9551e71bf
mov: Add an option to toggle dref opening
...
This feature is mostly only used by NLE software, and is
both of dubious value being enabled by default, and a
possible security risk.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 712d962a6a )
Conflicts:
libavformat/isom.h
libavformat/mov.c
libavformat/version.h
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:53 +01:00
Michael Niedermayer
828d85bf86
avcodec/gif: Fix lzw buffer size
...
Fixes out of array access
Fixes: aaa479088e6fb40b04837b3119f47b04/asan_heap-oob_e38c68_8576_9d653078b2470700e2834636f12ff557.tga
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 03d83ba34b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:53 +01:00
Michael Niedermayer
aa833e1a60
avcodec/put_bits: Assert buf_ptr in flush_put_bits()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3ef5de0f19 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:53 +01:00
Michael Niedermayer
61850f1c84
avcodec/tiff: Check subsample & rps values more completely
...
Fixes out of array access
Fixes: 83aedfb29af669c4d6e10f1bfad974d2/asan_heap-oob_1ab42fe_4984_9f6ec14462f8d8a00ea24b320572a963.tif
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 89f464e9c2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:53 +01:00
Michael Niedermayer
6897859b5a
swscale/swscale: Add some sanity checks for srcSlice* parameters
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 321e85e176 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:53 +01:00
Michael Niedermayer
f121ed611e
swscale/x86/rgb2rgb_template: Fix planar2x() for short width
...
Fixes: 451b3e0cf956c0bd2f27ed753ac24050/asan_heap-oob_2873c01_3231_7ed10a9464d15f0d57277f5917c566a8.AVI
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c8a9aaab26 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:53 +01:00
Michael Niedermayer
6eb76b34ca
swscale/swscale_unscaled: Fix odd height inputs for bayer_to_yv12_wrapper()
...
Fixes: 372d2df1f04b49e25f109f07f90b1505/asan_heap-oob_2835d2e_8501_99e0114d7ba3a6db885d0b4684d200c1.cine
Fixes out of array read
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 757248ea3c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:53 +01:00
Michael Niedermayer
034edcec6d
swscale/swscale_unscaled: Fix odd height inputs for bayer_to_rgb24_wrapper()
...
Fixes: 372d2df1f04b49e25f109f07f90b1505/asan_heap-oob_2835d2e_8501_99e0114d7ba3a6db885d0b4684d200c1.cine
Fixes out of array read
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ad3b6fa7d8 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-28 15:53:53 +01:00
Michael Niedermayer
8008a029ab
avcodec/aacenc: Check both channels for finiteness
...
Fixes null pointer dereference
Fixes: 10412fc52ecc6eab40ed67f82ca7b372/signal_sigsegv_2618c99_2129_f808373959e46afb165593332799ffbc.aif
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 057549a9cc )
Conflicts:
libavcodec/aacenc.c
2016-01-28 15:53:53 +01:00
Andreas Cadhalpun
d640bc7545
asfdec_o: check for too small size in asf_read_unknown
...
This fixes infinite loops due to seeking back.
Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit c29e87ad55 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:45 +01:00
Andreas Cadhalpun
93559adfbf
asfdec_o: break if EOF is reached after asf_read_packet_header
...
asf_read_payload can unset eof_reached, so check it also before calling
that function.
This fixes infinite loops.
Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 0e32153e9c )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:45 +01:00
Andreas Cadhalpun
4679e54388
asfdec_o: make sure packet_size is non-zero before seeking
...
This fixes infinite loops due to seeking back.
Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 3776a72962 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:45 +01:00
Andreas Cadhalpun
782257ba66
asfdec_o: prevent overflow causing seekback
...
This fixes infinite loops.
Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 74474750f1 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:45 +01:00
Andreas Cadhalpun
e188c267c8
asfdec_o: check avio_skip in asf_read_simple_index
...
The loop can be very long, even though the file is very short.
Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 0002d845e8 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:44 +01:00
Andreas Cadhalpun
407ab167c0
asfdec_o: reject size > INT64_MAX in asf_read_unknown
...
Both avio_skip and detect_unknown_subobject use int64_t for the size
parameter.
This fixes a segmentation fault due to infinite recursion.
Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit aa18016996 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:44 +01:00
Andreas Cadhalpun
d7fbd03660
asfdec_o: only set asf_pkt->data_size after sanity checks
...
Otherwise invalid values are used unchecked in the next run.
This can cause NULL pointer dereferencing.
Reviewed-by: Alexandra Hájková <alexandra.khirnova@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 763c572801 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:44 +01:00
Hendrik Leppkes
2cd41c5d52
Merge commit '8375dc1dd101d51baa430f34c0bcadfa37873896'
...
* commit '8375dc1dd101d51baa430f34c0bcadfa37873896':
asfdec: handle the case when the stream index has an invalid value better
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
(cherry picked from commit bf67ae3cfa )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:44 +01:00
Andreas Cadhalpun
1272b88d04
dca: fix misaligned access in avpriv_dca_convert_bitstream
...
src and dst are only 8-bit-aligned, so accessing them as uint16_t causes
SIGBUS crashes on architectures like sparc.
This fixes ubsan runtime error: load of misaligned address for type
'const uint16_t', which requires 2 byte alignment
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 44ac13eed4 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:44 +01:00
Andreas Cadhalpun
cf99f0dd0f
brstm: fix missing closing brace
...
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 1cb2331eca )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:44 +01:00
Andreas Cadhalpun
247bb203e4
brstm: also allocate b->table in read_packet
...
This fixes NULL pointer dereferencing if the codec is forced to
adpcm_thp even though a different one was detected.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit bcf4ee26a0 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:44 +01:00
Andreas Cadhalpun
94b9e7caae
brstm: make sure an ADPC chunk was read for adpcm_thp
...
This fixes NULL pointer dereferencing.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit d7d37c479f )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:44 +01:00
Andreas Cadhalpun
6ffaf40c02
vorbisdec: reject rangebits 0 with non-0 partitions
...
This causes non-unique elements in floor_setup->data.t1.list, which
makes the stream undecodable according to the specification.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit e7a7b3135a )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:44 +01:00
Andreas Cadhalpun
e3d7796336
vorbisdec: reject channel mapping with less than two channels
...
It causes the angle channel number to equal the magnitude channel
number, which makes the stream undecodable according to the
specification.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit b4b13848de )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:44 +01:00
Andreas Cadhalpun
667a23a032
ffmdec: reset packet_end in case of failure
...
This fixes segmentation faults caused by passing a packet_ptr of NULL to
memcpy.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 40eb2531b2 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:45:44 +01:00
Paul B Mahol
7b0fb4fdf7
avformat/ipmovie: put video decoding_map_size into packet and use it in decoder
...
The size of decoding map can differ from one calculated
internally, producing artifacts while decoding video.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
(cherry picked from commit c293ef258c )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:28:49 +01:00
Paul B Mahol
40ebeee3fc
avformat/brstm: fix overflow
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
(cherry picked from commit 3441fef0f8 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2016-01-27 23:28:43 +01:00
James Almer
b8fa3ff95d
avcodec/wavpackenc: print channel count in av_log call
...
Fixes a warning with -Wformat-extra-args
(cherry picked from commit 17e7fdf61a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 17:53:58 +01:00
James Almer
063928910f
configure: bump copyright year to 2016
...
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 78129978f0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 16:26:06 +01:00
Michael Niedermayer
e303ca3ac9
Update for 2.8.5
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 16:25:51 +01:00
Michael Niedermayer
28f89bc439
avformat/hls: Even stricter URL checks
...
This fixes a null pointer dereference at least
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit cfda1bea4c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 15:49:35 +01:00
Michael Niedermayer
23b903aaf4
avformat/hls: More strict url checks
...
No case is known where these are needed
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6ba42b6482 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 14:17:28 +01:00
Michael Niedermayer
4676e20a9d
avcodec/pngenc: Fix mixed up linesizes
...
Fixes out of array accesses
Fixes: 0cf176e6d3ab9fe924f39738e513f547/asan_generic_4a54aa_3431_aaa28be1cb32e307a9890cad06f84fba.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8f4c3e4b92 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:41 +01:00
Michael Niedermayer
0c5a71fece
avcodec/pngenc: Replace memcpy by av_image_copy()
...
Fixes out of array access
Fixes: 0cf176e6d3ab9fe924f39738e513f547/asan_generic_4a54aa_3431_aaa28be1cb32e307a9890cad06f84fba.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7ec9c5ce8a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:41 +01:00
Michael Niedermayer
07da25548f
swscale/vscale: Check that 2 tap filters are bilinear before using bilinear code
...
Fixes: out of array reads
Fixes: 07e8b9c5d348ccdf7add0f37de20cf6c/asan_heap-oob_27e8df7_6849_e56653f768070ec8cb52f587048444c2.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit eb7802afef )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:41 +01:00
Michael Niedermayer
be9b89314f
swscale: Move VScalerContext into vscale.c
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7b6e6895f2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:41 +01:00
Michael Niedermayer
cdac68fbab
swscale/utils: Detect and skip unneeded sws_setColorspaceDetails() calls
...
This avoids running various table inits unnecessarily
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit cc538e9dbd )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:41 +01:00
Michael Niedermayer
1fd9556062
swscale/yuv2rgb: Increase YUV2RGB table headroom
...
This makes SWS more robust
Fixes: 07650a772d98aa63b0fed6370dc89037/asan_heap-oob_27ddeaf_2657_2c81ff264dee5d9712cb3251fb9c3bbb.264
Fixes: out of array read
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8f3a9a8c27 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
c781a1e14b
swscale/yuv2rgb: Factor YUVRGB_TABLE_LUMA_HEADROOM out
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5e5f82a287 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Maxim Andreev
b7d54d6e07
avformat/hls: forbid all protocols except http(s) & file
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7145e80b4f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
90c2256ee5
avformat/aviobuf: Fix end check in put_str16()
...
Fixes out of array read
Fixes: 03c406ec9530e594a074ce2979f8a1f0/asan_heap-oob_7dec26_4664_37c52495b2870a2eaac65f53958e76c1.flac
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 115fb6d03e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
f459afdd72
avformat/asfenc: Check pts
...
Fixes integer overflow
Fixes: 0063df8be3aaa30dd6d76f59c8f818c8/signal_sigsegv_7b7b59_3634_bf418b6822bbfa68734411d96b667be3.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7c0b84d899 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
d408261b65
avcodec/mpeg4video: Check time_incr
...
Fixes assertion failure
Fixes out of memory access
Fixes: test_casex.ivf
Found-by: Tyson Smith <twsmith@mozilla.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7c97946d61 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
d7f7586c3f
avcodec/wavpackenc: Check the number of channels
...
They are stored in a byte, thus more than 255 is not possible
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 59c915a403 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
f05e0e76d6
avcodec/wavpackenc: Headers are per channel
...
Fixes: 1b8b83a53bfa751f01b1daa65a4758db/signal_sigabrt_7ffff6ae7cb7_7488_403f71d1a2565b598d01b6cb110fac8f.aiff
Fixes: assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 26757b0279 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
e5567f2f69
avcodec/aacdec_template: Check id_map
...
Fixes index out of bounds error
Fixes: aac_index_out_of_bounds.wmv
Found-by: Piotr Bandurski <ami_stuff@o2.pl >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 590863876d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
b8382a1fae
avcodec/dvdec: Fix "left shift of negative value -254"
...
Fixes: dvdec_left_shift.avi
Found-by: Piotr Bandurski <ami_stuff@o2.pl >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 93ac72a98d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
9cad208223
avcodec/g2meet: Check for ff_els_decode_bit() failure in epic_decode_run_length()
...
Fixes invalid shift
Fixes: g2m_left_shift_2.wmv
Found-by: Piotr Bandurski <ami_stuff@o2.pl >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 030c7f0309 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
34e06ce309
avcodec/mjpegdec: Fix negative shift
...
Fixes: mjpeg_left_shift.avi
Found-by: Piotr Bandurski <ami_stuff@o2.pl >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d86d7b2486 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
df4ee166f1
avcodec/mss2: Check for repeat overflow
...
Fixes: mss2_left_shift.wmv
Found-by: Piotr Bandurski <ami_stuff@o2.pl >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e273dade78 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
cb4ba7456a
avformat: Add integer fps from 31 to 60 to get_std_framerate()
...
Fixes Ticket 5106
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2039b3e751 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
d79b6dd9f9
avformat/ivfenc: fix division by zero
...
Fixes Ticket 5115
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5c8467a07c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
36861557a7
avcodec/mpegvideo_enc: Clip bits_per_raw_sample within valid range
...
Fixes out of array read
Fixes: test_case-mdc.264 (b47be15a120979f5a1a945c938cbef33)
Found-by: Tyson Smith <twsmith@mozilla.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 13f266b50c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Thomas Mundt
3fb97a01ce
avfilter/vf_scale: set proper out frame color range
...
Prevents that following scalers in the filter chain will do unintentional color range conversions.
Fixes Ticket #5096
Signed-off-by: Thomas Mundt <loudmax@yahoo.de >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 73ce8162f3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
6457cd17be
avcodec/motion_est: Fix mv_penalty table size
...
Fixes out of array read
Found-by: Tyson Smith <twsmith@mozilla.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5b4da8a38a )
Conflicts:
libavcodec/motion_est.h
2016-01-15 12:30:40 +01:00
Michael Niedermayer
aee9aa9216
avcodec/h264_slice: Fix integer overflow in implicit weight computation
...
Fixes mozilla bug 1230423
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7cc01c2572 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
14c63dc9b0
swscale/utils: Use normal bilinear scaler if fast cannot be used due to tiny dimensions
...
Fixes Ticket4960
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1edf129cbc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
709abc74f5
avcodec/put_bits: Always check buffer end before writing
...
This causes a overall slowdown of 0.1 % (tested with mpeg4 single thread encoding of matrixbench at QP=3)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit cccb0ffccc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Andreas Cadhalpun
83c0df90b0
mjpegdec: extend check for incompatible values of s->rgb and s->ls
...
This can happen if s->ls changes from 0 to 1, but picture allocation is
skipped due to s->interlaced.
In that case ff_jpegls_decode_picture could be called even though the
s->picture_ptr frame has the wrong pixel format and thus a wrong
linesize, which results in a too small zero buffer being allocated.
This fixes an out-of-bounds read in ls_decode_line.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 7ea2db6eaf )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
0a6324fe93
swscale/utils: Fix intermediate format for cascaded alpha downscaling
...
Fixes Ticket4926
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b83d8be6bf )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
Michael Niedermayer
2f65366c11
avformat/mov: Update handbrake_version threshold for full mp3 parsing
...
Fixes: Endangered\ Species\ 1x01\ Collecting\ Merl.mp4
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d3b6a9abac )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-01-15 12:30:40 +01:00
James Almer
3e3aa25afa
x86/float_dsp: zero extend offset from ff_scalarproduct_float_sse
...
Reviewed-by: Christophe Gisquet <christophe.gisquet@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit dc79824deb )
2016-01-08 14:02:27 -03:00
Paul B Mahol
6a1bf98b3a
avfilter/vf_zoompan: do not free frame we pushed to lavfi
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
(cherry picked from commit 8bcd1997ea )
Fixes ticket #5113 .
2016-01-02 21:21:43 +01:00
Andreas Cadhalpun
79f407b79a
nuv: sanitize negative fps rate
...
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit f6830cf5ba )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-20 13:39:45 +01:00
Andreas Cadhalpun
174ec7d744
nutdec: reject negative value_len in read_sm_data
...
If it is negative, it can cause the byte position to move backwards in
avio_skip, which in turn makes sm_size negative and thus size larger
than the size of the packet buffer, causing invalid writes in avio_read.
Also fix potential overflow of avio_tell(bc) + value_len.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit ce10f572c1 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-20 13:39:41 +01:00
Andreas Cadhalpun
778c8de40f
xwddec: prevent overflow of lsize * avctx->height
...
This is used to check if the input buffer is large enough, so if this
overflows it can cause a false negative leading to a segmentation fault
in bytestream2_get_bufferu.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 9d38f06d05 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-20 13:39:37 +01:00
Andreas Cadhalpun
38f8c80901
nutdec: only copy the header if it exists
...
Fixes ubsan runtime error: null pointer passed as argument 2, which is
declared to never be null
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 9f82506c79 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-20 13:39:33 +01:00
Andreas Cadhalpun
945ae04fab
exr: fix out of bounds read in get_code
...
This macro unconditionally used out[-1], which causes an out of bounds
read, if out is the very beginning of the buffer.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 90b99a8107 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-20 13:39:29 +01:00
Andreas Cadhalpun
6d7b4dbcb4
on2avc: limit number of bits to 30 in get_egolomb
...
More don't fit into the integer output.
Also use get_bits_long, since get_bits only supports reading up to 25
bits, while get_bits_long supports the full integer range.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 4d5c3b02e9 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-20 13:39:24 +01:00
Michael Niedermayer
644179e0d4
Update Changelog
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-20 02:58:41 +01:00
Andreas Cadhalpun
9be3441c31
rawdec: only exempt BIT0 with need_copy from buffer sanity check
...
Otherwise the too samll buffer is directly used in the frame, causing
segmentation faults, when trying to use the frame.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-20 02:58:21 +01:00
Andreas Cadhalpun
63ecbb82fc
mlvdec: check that index_entries exist
...
This fixes NULL pointer dereferencing.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-20 02:42:13 +01:00
Michael Niedermayer
bdc6ba4604
avcodec/mpeg4videodec: also for empty partitioned slices
...
Fixes assertion failure
Fixes: id_acf3e47f864e1ee4c7b86c0653e0ff31e5bde56e.m4v
Found-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 70f13abb4f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-19 23:54:47 +01:00
Michael Niedermayer
3a3be02208
avcodec/h264_refs: Fix long_idx check
...
Fixes out of array read
Fixes mozilla bug 1233606
Found-by: Tyson Smith
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b92b4775a0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-19 22:19:21 +01:00
Michael Niedermayer
cabd9ae5be
avcodec/h264_mc_template: prefetch list1 only if it is used in the MB
...
Fixes ubsan warning
Fixes Mozilla bug 1230276
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c8ea57664f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-18 00:55:27 +01:00
Michael Niedermayer
cfbf608c0a
avcodec/h264_slice: Simplify ref2frm indexing
...
This also suppresses a ubsan warning
Fixes Mozilla bug 1230247
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ef8f6464a5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-18 00:55:15 +01:00
Michael Niedermayer
1dddd5371a
Revert "avcodec/aarch64/neon.S: Update neon.s for transpose_4x4H"
...
The change was not correct and broke H264
This reverts commit cd83f899c9 .
(cherry picked from commit 95b59bfb9d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-17 21:50:57 +01:00
Michael Niedermayer
e4a6a8553e
avfilter/vf_mpdecimate: Add missing emms_c()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 997de2e810 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-17 21:32:17 +01:00
Andreas Cadhalpun
748d5fa2ed
sonic: make sure num_taps * channels is not larger than frame_size
...
If that is the case, the loop setting predictor_state in
sonic_decode_frame causes out of bounds reads of int_samples, which has
only frame_size number of elements.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 9637c2531f )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-17 20:04:35 +01:00
Andreas Cadhalpun
796f1a24f5
opus_silk: fix typo causing overflow in silk_stabilize_lsf
...
Due to this typo max_center can be too large, causing nlsf to be set to
too large values, which in turn can cause nlsf[i - 1] + min_delta[i] to
overflow to a negative value, which is not allowed for nlsf and can
cause an out of bounds read in silk_lsf2lpc.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit f61d44b74a )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-17 20:04:30 +01:00
Andreas Cadhalpun
0b24a0e0f1
ffm: reject invalid codec_id and codec_type
...
A negative codec_id cannot be handled by the found_decoder API of
AVStream->info: if the codec_id is not recognized, found_decoder is set
to -codec_id, which has to be '<0' according to the API documentation.
This can cause NULL pointer dereferencing in try_decode_frame.
Also make sure the codec_type matches the expected one for codec_id.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit ecf63b7cc2 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-17 20:04:25 +01:00
Andreas Cadhalpun
a79a5c32f9
golomb: always check for invalid UE golomb codes in get_ue_golomb
...
Also correct the check to reject log < 7, because UPDATE_CACHE only
guarantees 25 meaningful bits.
This fixes undefined behavior:
runtime error: shift exponent is negative
Testing with START/STOP timers in get_ue_golomb, one for the first
branch (A) and one for the second (B), shows that there is practically no
slowdown, e.g. for the cavs decoder:
With the check in the B branch:
629 decicycles in get_ue_golomb B, 4194260 runs, 44 skips
433 decicycles in get_ue_golomb A,268434102 runs, 1354 skips
Without the check:
624 decicycles in get_ue_golomb B, 4194273 runs, 31 skips
433 decicycles in get_ue_golomb A,268434203 runs, 1253 skips
Since the B branch is executed far less often than the A branch, this
change is negligible, even more so for the h264 decoder, where the ratio
B/A is a lot smaller.
Fixes: mozilla bug 1230239
Fixes: fbeb8b2c7c996e9b91c6b1af319d7ebc/asan_heap-oob_195450f_2743_e8856ece4579ea486670be2b236099a0.bit
Found-by: Tyson Smith
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 22e960ad47 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-17 20:03:56 +01:00
Andreas Cadhalpun
b9087aa651
sbr_qmf_analysis: sanitize input for 32-bit imdct
...
If the input contains too many too large values, the imdct can overflow.
Even if it didn't, the output would be larger than the valid range of 29
bits.
Note that this is a very delicate limit: Allowing values up to 1<<25
does not prevent input larger than 1<<29 from arriving at
sbr_sum_square, while limiting values to 1<<23 breaks the
fate-aac-fixed-al_sbr_hq_cm_48_5.1 test.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit fdc94db37e )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-17 20:03:48 +01:00
Andreas Cadhalpun
7e94ea3dd1
sbrdsp_fixed: assert that input values are in the valid range
...
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit a9c20e922c )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-17 20:03:44 +01:00
Andreas Cadhalpun
cb44683a8c
aacsbr: ensure strictly monotone time borders
...
This fixes a division by zero in the aac_fixed decoder.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit ff8816f717 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-17 20:03:34 +01:00
Andreas Cadhalpun
dcd837e41c
aacenc: update max_sfb when num_swb changes
...
This fixes out-of-bounds reads in avoid_clipping.
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 5b0da6999f )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-17 20:03:29 +01:00
Andreas Cadhalpun
507e0314c0
aaccoder: prevent crash of anmr coder
...
If minq is negative, the range of sf_idx can be larger than
SCALE_MAX_DIFF allows, causing assertion failures later in
encode_scale_factors.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 7a4652dd5d )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-17 20:03:02 +01:00
Andreas Cadhalpun
76af12f542
ffmdec: reject zero-sized chunks
...
If size is zero, avio_get_str fails, leaving the buffer uninitialized.
This causes invalid reads in av_set_options_string.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit a611375db5 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-12-17 20:02:55 +01:00
Michael Niedermayer
20a48eaaf1
swscale/x86/rgb2rgb_template: Fallback to mmx in interleaveBytes() if the alignment is insufficient for SSE*
...
This also as a sideeffect fixes the non aligned case
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a066ff89bc )
2015-12-15 11:16:22 +01:00
Michael Niedermayer
31aeb96533
swscale/x86/rgb2rgb_template: Do not crash on misaligend stride
...
Fixes Ticket5013
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 80bfce35cc )
2015-12-15 11:16:10 +01:00
Michael Niedermayer
95a144ae62
avformat/mxfenc: Do not crash if there is no packet in the first stream
...
Fixes: Ticket4914
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b51e7554e7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-13 17:27:04 +01:00
Nicolas George
1450a39ad4
lavf/tee: fix side data double free.
...
Similar to 33fefdb44 .
Fix trac ticket #4921 .
Signed-off-by: Nicolas George <george@nsup.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1acc90eaa5 )
Conflicts:
libavformat/tee.c
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-13 10:14:24 +01:00
Michael Niedermayer
d07f658201
avformat/hlsenc: Check the return code of avformat_write_header()
...
Fixes: segfault
Fixes: Ticket5067
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c62d1780ff )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-13 02:59:32 +01:00
Michael Niedermayer
07b43fb69a
avformat/mov: Enable parser for mp3s by old HandBrake
...
Fixes Ticket5047
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 861f47ddf4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-13 02:15:36 +01:00
Michael Niedermayer
e3f08d9359
avformat/mxfenc: Fix integer overflow in length computation
...
Fixes: CID1341577
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 537e901fe6 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-13 02:15:14 +01:00
Michael Niedermayer
f87d2617d5
Changelog: Update
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-12 23:25:12 +01:00
zjh8890
cd83f899c9
avcodec/aarch64/neon.S: Update neon.s for transpose_4x4H
...
The transpose_4x4H is wrong which cost me much time to find this bug. The orders of r2 and r3 are wrong,
this bug waste me much time while I make aarch64 arm instruction which used the function.
(cherry picked from commit c18176bd55 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-12 15:05:06 +01:00
Rainer Hochecker
5e105aca01
avformat/utils: estimate_timings_from_pts - increase retry counter, fixes invalid duration for ts files with hevc codec
...
Fixes a mpegts file with hevc that fails estimating duration. Increasing number of
retries fixes the issue.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2d8c2f1a28 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-09 20:46:47 +01:00
Michael Niedermayer
a9c721da12
avformat/matroskaenc: Check codecdelay before use
...
Fixes CID1238790
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e6971db12b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-09 18:27:54 +01:00
Michael Niedermayer
4608cc176b
avutil/mathematics: Fix division by 0
...
Fixes: CID1341571
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit bc8b1e694c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-09 17:53:44 +01:00
Andreas Cadhalpun
2e54b8c379
mjpegdec: consider chroma subsampling in size check
...
If the chroma components are subsampled, smaller buffers are allocated
for them. In that case the maximal block_offset for the chroma
components is not as large as for the luma component.
This fixes out of bounds writes causing segmentation faults or memory
corruption.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 5adb5d9d89 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-07 01:34:13 +01:00
Michael Niedermayer
913c642c21
Update for 2.8.4
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 10:42:02 +01:00
James Zern
cb4985ea9a
libvpxenc: remove some unused ctrl id mappings
...
VP8E_UPD_ENTROPY, VP8E_UPD_REFERENCE, VP8E_USE_REFERENCE were removed
from libvpx and the remaining values were never used here
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Zern <jzern@google.com >
(cherry picked from commit 6540fe04a3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:28 +01:00
Michael Niedermayer
d27d59fef7
avcodec/vp3: ensure header is parsed successfully before tables
...
Fixes assertion failure
Fixes: 266ee543812e934f7b4a72923a2701d4/signal_sigabrt_7ffff6ae7cc9_7322_85218d61759d461bdf7387180e8000c9.ogg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 26379d4fdd )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:28 +01:00
Michael Niedermayer
ea4d9cb3e5
avcodec/jpeg2000dec: Check bpno in decode_cblk()
...
Fixes: undefined shift
Fixes: c409ef86f892335a0a164b5871174d5a/asan_heap-oob_1dff564_2159_162b7234616deab02b544410455eb07b.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a85b02dcf7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
e5a4044771
avcodec/pgssubdec: Fix left shift of 255 by 24 places cannot be represented in type int
...
Fixes: b293a6479bb4b5286cff24d356bfd955/asan_generic_225c3c9_7819_cc526b657450c6cdef1371b526499626.mkv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4f2419888b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
af44545613
swscale/utils: Fix for runtime error: left shift of negative value -1
...
Fixes: c106b36fa36db8ff8f3ed0c82be7bea2/asan_heap-oob_32699f0_6321_467b9a1d7e03d7cfd310b7e65dc53bcc.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 325b59368d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
10fc3d690c
avcodec/hevc: Fix integer overflow of entry_point_offset
...
Fixes out of array read
Fixes: d41d8cd98f00b204e9800998ecf8427e/signal_sigsegv_321165b_7641_077dfcd8cbc80b1c0b470c8554cd6ffb.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2140858524 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
0fa92fee43
avcodec/dirac_parser: Check that there is a previous PU before accessing it
...
Fixes out of array read
Fixes: 99d142c47e6ba3510a74b872a1a2ae72/asan_heap-oob_11b36f4_3811_0f5c69e7609a88a580135678de1df844.dxa
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a08681f1e6 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
cf79fd0317
avcodec/dirac_parser: Add basic validity checks for next_pu_offset and prev_pu_offset
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c7d6ec947c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
b253035ab2
avcodec/dirac_parser: Fix potential overflows in pointer checks
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 79798f7c57 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
ded0a04153
avcodec/wmaprodec: Check bits per sample to be within the range not causing integer overflows
...
Fixes: 549d5aab1480d10f2a775ed90b0342f1/signal_sigabrt_7ffff6ae7cc9_5643_96bbb0cfe3e28be1dadfce1075016345.wma
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 66e05f6ff5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
16c5da92d9
avcodec/wmaprodec: Fix overflow of cutoff
...
Fixes: 129ca3e28d73af7b1e24a9d4118e7a2d/signal_sigabrt_7ffff6ae7cc9_836_762b310fc3ef6087bd7771e5d8e90b9b.asf
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0c56f8303e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
0e3ec7db53
avformat/smacker: fix integer overflow with pts_inc
...
Fixes: ce19e41f0ef1e52a23edc488faecdb58/asan_heap-oob_2504e97_4202_ffa0df1baed14022b9bfd4f8ac23d0cb.smk
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7ed47e9729 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
73966b0161
avcodec/vp3: Fix "runtime error: left shift of negative value"
...
Fixes: 5c6129154b356b80bcab86f9e3ee5d29/signal_sigabrt_7ffff6ae7cc9_7322_d26ac6d7cb6567db1b8be0159b387d0b.ogg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 18268f761b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
b8621a2e98
avformat/riffdec: Initialize bitrate
...
Fixes CID1338334
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 32bf6550cb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Timo Teräs
aa9ac199b8
mpegencts: Fix overflow in cbr mode period calculations
...
ts->mux_rate is int (signed 32-bit) type. The period calculations
will start to overflow when mux_rate > 5mbps. This fixes overflows
by converting first to 64-bit type.
Fixes #5044 .
Signed-off-by: Timo Teräs <timo.teras@iki.fi >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 64f7db554e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
f2258e9899
avutil/timecode: Fix fps check
...
The fps variable is explicitly set to -1 in case of some errors, the check must
thus be signed or the code setting it needs to use 0 as error code
the type of the field could be changed as well but its in an installed header
Fixes: integer overflow
Fixes: 9982cc157b1ea90429435640a989122f/asan_generic_3ad004a_3799_22cf198d9cd09928e2d9ad250474fa58.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b46dcd5209 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
e04b039b15
avutil/mathematics: return INT64_MIN (=AV_NOPTS_VALUE) from av_rescale_rnd() for overflows
...
Fixes integer overflow
Fixes: mozilla bug 1229167
Found-by: Tyson Smith
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit f03c2ceec1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
d295ddffe1
avcodec/apedec: Check length in long_filter_high_3800()
...
Fixes out of array read
Fixes: 0a7ff0c1d93da9cef28a315ec91b692a/asan_heap-oob_4a52e5_3604_9c56dbb20e308f4faeef7b35f688521a.ape
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit cd7524fdd1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
aab65146af
avcodec/vp3: always set pix_fmt in theora_decode_header()
...
Fixes assertion failure
Fixes: d0bb0662da342ec65f8f2a081222e6b9/signal_sigabrt_7ffff6ae7cc9_5471_82964f0a9ac2f4d3d59390c15473f6f7.ogg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a814f1d364 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
8cd3def81d
avcodec/mpeg4videodec: Check available data before reading custom matrix
...
Fixes: out of array read
Fixes: 76c515fc3779d1b838667c61ea13ce92/asan_heap-oob_1fc0d07_8913_794a4629a264ebdb25b58d3a94ed1785.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 891dc8f875 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
460710500e
avutil/mathematics: Do not treat INT64_MIN as positive in av_rescale_rnd
...
The code expects actual positive numbers and gives completely wrong
results if INT64_MIN is treated as positive
Instead clip it into the valid range that is add 1 and treat it as
negative
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 25e37f5ea9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
4d9999705f
avutil/integer: Fix av_mod_i() with negative dividend
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3a9cb18855 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
3d69716bae
avformat/dump: Fix integer overflow in av_dump_format()
...
Fixes part of mozilla bug 1229167
Found-by: Tyson Smith
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8e7f452022 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
2fbf723585
avcodec/h264_refs: Check that long references match before use
...
Fixes out of array read
Fixes: 59bb925e90201fa0f87f0a31945d43b5/asan_heap-oob_4a52e5_3388_66027f11e3d072f1e02401ecc6193361.jvt
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit aa427537b5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
7372b42b18
avcodec/utils: Clear dimensions in ff_get_buffer() on failure
...
Fixes out of array access
Fixes: 482d8f2fd17c9f532b586458a33f267c/asan_heap-oob_4a52b6_7417_1d08d477736d66cdadd833d146bb8bae.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit abee0a1c60 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
fe89682d7c
avcodec/utils: Use 64bit for aspect ratio calculation in avcodec_string()
...
Fixes integer overflow
Fixes: 3a45b2ae02f2cf12b7bd99543cdcdae5/asan_heap-oob_1dff502_8022_899f75e1e81046ebd7b6c2394a1419f4.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4f03bebc79 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
ce6dd54711
avcodec/hevc: Check max ctb addresses for WPP
...
Fixes out of array read
Fixes: 2f95ddd996db8a6281d2e18c184595a7/asan_heap-oob_192fe91_3330_58e4441181e30a66c19f743dcb392347.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit dad354f38d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
d32c9723a6
avcodec/vp3: Clear context on reinitialization failure
...
Fixes null pointer dereference
Fixes: 1536b9b096a8f95b742bae9d3d761cc6/signal_sigsegv_294aaed_2039_8d1797aeb823ea43858d0fa45c9eb899.ogv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6105b7219a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
1cbc2cb508
avcodec/hevc: allocate entries unconditionally
...
Fixes out of array access
Fixes: 08664a2a7921ef48172f26495c7455be/asan_heap-oob_23036c6_3301_523388ef84285a0270caf67a43247b59.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d85aa76115 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:27 +01:00
Michael Niedermayer
e348769544
avcodec/hevc_cabac: Fix multiple integer overflows
...
Fixes: 04ec80eefa77aecd7a49a442cc02baea/asan_heap-oob_19544fa_3303_1905796cd9d8e15f86d664332caabc00.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d5028f61e4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:26 +01:00
Michael Niedermayer
9ce96a688b
avcodec/jpeg2000dwt: Check ndeclevels before calling dwt_encode*()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit feb3f39614 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:26 +01:00
Michael Niedermayer
9d5bdca3d8
avcodec/jpeg2000dwt: Check ndeclevels before calling dwt_decode*()
...
Fixes out of array access
Fixes: 01859c9a9ac6cd60a008274123275574/asan_heap-oob_1dff571_8250_50d3d1611e294c3519fd1fa82198b69b.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 75422280fb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:26 +01:00
Michael Niedermayer
31e54f41a0
avcodec/hevc: Check entry_point_offsets
...
Fixes out of array read
Fixes: 007c4a36608ebdf27ee260ad60a81184/asan_heap-oob_32076b4_2243_116b1cb29d91cc4974d6680e3d10bd91.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ef9f7bbfa4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-12-06 02:51:26 +01:00
Carl Eugen Hoyos
aa3101a9e8
lavf/rtpenc_jpeg: Less strict check for standard Huffman tables.
...
There can be one or more Huffman table segments DHT.
Reported-by: Andrey Utkin
2015-12-02 14:56:53 +01:00
Michael Niedermayer
ff3e717003
avcodec/ffv1dec: Clear quant_table_count if its invalid
...
Fixes deallocation of corrupted pointer
Fixes: 343dfbe142a38b521ed069dc4ea7c03b/signal_sigsegv_421427_4074_ffb11959610278cd40dbc153464aa254.avi
No releases affected
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit e04126072e )
Fixes ticket #5052 .
2015-12-02 12:03:17 +01:00
Michael Niedermayer
1c6243228c
avcodec/ffv1dec: Print an error if the quant table count is invalid
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a8b254e436 )
2015-12-02 11:57:34 +01:00
Andrey Utkin
482bece29b
doc/filters/drawtext: fix centering example
...
Signed-off-by: Andrey Utkin <andrey.od.utkin@gmail.com >
Signed-off-by: Lou Logan <lou@lrcd.com >
(cherry picked from commit 648b26acc5 )
Signed-off-by: Timothy Gu <timothygu99@gmail.com >
2015-12-01 17:32:05 -08:00
James Almer
644296e736
avutil/softfloat: use abort() instead of av_assert0(0)
...
Fixes compilation of host tool aacps_fixed_tablegen.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit 9f4a41bf99 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-27 15:01:22 +01:00
Michael Niedermayer
a353cc44a6
Update for 2.8.3
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-27 14:29:04 +01:00
Michael Niedermayer
4c718691ea
avcodec/cabac: Check initial cabac decoder state
...
Fixes integer overflows
Fixes: 1430e9c43fae47a24c179c7c54f94918/signal_sigsegv_421427_2340_591e9810c7b09efe501ad84638c9e9f8.264
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Found-by: xiedingbao (Ticket4727)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8000d484b8 )
Conflicts:
libavcodec/cabac.h
2015-11-27 14:07:03 +01:00
Michael Niedermayer
24c504bd0a
avcodec/cabac_functions: Fix "left shift of negative value -31767"
...
Fixes: 1430e9c43fae47a24c179c7c54f94918/signal_sigsegv_421427_2340_591e9810c7b09efe501ad84638c9e9f8.264
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Found-by: xiedingbao (Ticket4727)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a1f6b05f52 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-27 14:03:01 +01:00
Michael Niedermayer
6b91701de3
avcodec/h264_slice: Limit max_contexts when slice_context_count is initialized
...
Fixes out of array access
Fixes: 1430e9c43fae47a24c179c7c54f94918/signal_sigsegv_421427_2049_f2192b6829ab6e0eefcb035329c03c60.264
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4ea4d2f438 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:06:39 +01:00
Martin Storsjö
1290c85c9d
rtmpcrypt: Do the xtea decryption in little endian mode
...
The XTEA algorithm operates on 32 bit numbers, not on byte sequences.
The XTEA implementation in libavutil is written assuming big endian
numbers, while the rtmpe signature encryption assumes little endian.
This fixes rtmpe communication with rtmpe servers that use signature
type 8 (XTEA), e.g. crunchyroll.
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
(cherry picked from commit e7728319b92dbb4fb949155e33de7ff5358ddff3)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:06:39 +01:00
Michael Niedermayer
b70f7d20e1
avformat/matroskadec: Check subtitle stream before dereferencing
...
Unrecognized streams are not allocated
Fixes: flicker-1.color1.vp91447030769.08.webm
Found-by: Chris Cunningham <chcunningham@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a5034b324c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:06:39 +01:00
Michael Niedermayer
71a3113333
avcodec/pngdec: Replace assert by request for sample for unsupported TRNS cases
...
Fixes assertion failure
Fixes: 7f646252a30ee28b583aac1f82e7985e/signal_sigabrt_7ffff6ae7cc9_7353_62fc077bf2f454d39e188c69807193a6.png
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a62178be80 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:06:39 +01:00
Michael Niedermayer
859a6edaed
avformat/utils: Do not init parser if probing is unfinished
...
Fixes assertion failure
Fixes: 136f8b8d47af7892306625e597dee655/signal_sigabrt_7ffff6ae7cc9_8941_ab11bea57c84796418f481f873dc31ba.dvr_ms
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1ef336e912 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:06:39 +01:00
Michael Niedermayer
2dc1f3a02b
avcodec/jpeg2000dec: Fix potential integer overflow with tile dimensions
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 65d3359fb3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:06:39 +01:00
Michael Niedermayer
9a9dda615b
avcodec/jpeg2000: Use av_image_check_size() in ff_jpeg2000_init_component()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 016fd413f9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:05:42 +01:00
Michael Niedermayer
b3bc05290a
avcodec/wmaprodec: Check for overread in decode_packet()
...
Fixes assertion failure
Fixes: 0256e92df2df7e933b43a2c70e4c8040/signal_sigabrt_7ffff6ae7cc9_1358_999ac18684788221490757582ce9af84.wma
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7ad698e24e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:05:42 +01:00
Michael Niedermayer
093e58228e
avcodec/smacker: Check that the data size is a multiple of a sample vector
...
Fixes out of array access
Fixes: ce19e41f0ef1e52a23edc488faecdb58/asan_heap-oob_2504e97_4202_ffa0df1baed14022b9bfd4f8ac23d0cb.smk
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4a9af07a49 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:05:42 +01:00
Michael Niedermayer
948d93d3f4
avcodec/takdec: Skip last p2 sample (which is unused)
...
Fixes out of array read
Fixes: cb3f38b08b4541523974667c7d1eee9e/asan_heap-oob_2659e18_9838_021fd5cd635bf76cede6398cd9ecbcdd.tak
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 08b520636e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:05:41 +01:00
Michael Niedermayer
824e72d9b7
avcodec/dxtory: Fix input size check in dxtory_decode_v1_410()
...
Fixes potential out of array read
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 76b6f4b7d9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:05:41 +01:00
Michael Niedermayer
c7a970a3a0
avcodec/dxtory: Fix input size check in dxtory_decode_v1_420()
...
Fixes out of array read
Fixes: c50c4aa6cefda71b19a31ea12302980c/asan_heap-oob_12be5fd_7011_33ebd015a74976215934add72b9c8352.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9caa9414cc )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:05:41 +01:00
Michael Niedermayer
6af38b2718
avcodec/error_resilience: avoid accessing previous or next frames tables beyond height
...
The height of tables can be rounded up for MBAFF but this does not imply that is also true
for the previous frames
Fixes out of array reads
Fixes: c106b36fa36db8ff8f3ed0c82be7bea2/asan_heap-oob_32699f0_6321_467b9a1d7e03d7cfd310b7e65dc53bcc.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a105f52855 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:05:41 +01:00
Michael Niedermayer
0ce7baa245
avcodec/dpx: Move need_align to act per line
...
Fixes out of array read
Fixes: 61cf123c081ee2bb774d307c75bdb99e/asan_heap-oob_1224f76_5546_bee833ffae73f752b489b9eeaac52db7.dpx
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c8aaae8e0f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:05:41 +01:00
Michael Niedermayer
7f0b58947d
avcodec/flashsv: Check size before updating it
...
Fixes out of array read
Fixes: 3c857d4d90365731524716e6d051e43a/signal_sigsegv_7f4f59bcc29e_1386_20abd2c8e655cb9c75b24368e65fe3b1.flv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 17705f5d4f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:05:41 +01:00
Michael Niedermayer
f64ffbbdc0
avcodec/ivi: Check image dimensions
...
Fixes integer overflow
Fixes: 1e32c6c591d940337c20b197ec1c4d3d/asan_heap-oob_4a52e5_8946_0bb0d9e863def56005e49f1d89bdc94d.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit df91aa034b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:05:41 +01:00
Michael Niedermayer
c0748b9954
avcodec/utils: Better check for channels in av_get_audio_frame_duration()
...
Fixes integer overflow
Fixes: 0c2625f236ced104d402b4a03c0d65c7/asan_generic_274e1ce_5990_9314e7a67c26aecf011b178ade9f217c.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4e16ad2868 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:05:41 +01:00
Michael Niedermayer
dbfec68d32
avcodec/jpeg2000dec: Check for duplicate SIZ marker
...
Fixes: 0231a17345734228011c6f35a64e4594/asan_heap-oob_1d92a72_3218_1213809a9e3affec77e4c191fdfdc0a9.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 44a7f17d0b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-26 16:05:41 +01:00
Andreas Cadhalpun
34f2d74555
aacsbr: don't call sbr_dequant twice without intermediate read_sbr_data
...
Doing that doesn't make sense, because the only purpose of sbr_dequant
is to process the data from read_sbr_data.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 1c3e43a627 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:46 +01:00
Andreas Cadhalpun
22017f7745
hqx: correct type and size check of info_offset
...
It is used as size argument of ff_canopus_parse_info_tag, which uses it
as size argument to bytestream2_init, which only supports sizes up to
INT_MAX.
Changing it's type to unsigned simplifies the check.
Reviewed-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 1ed7fcd42a )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:46 +01:00
Andreas Cadhalpun
b372ad819e
mxfdec: check edit_rate also for physical_track
...
Previously only the edit_rate of material_track was checked.
If it's negative, it causes assertion failures in av_rescale_rnd.
Reviewed-by: Tim Nicholson <nichot20-at-yahoo.com@ffmpeg.org >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 047bf82c18 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:46 +01:00
Michael Niedermayer
bdbfc12e7f
avcodec/jpeg2000: Change coord to 32bit to support larger than 32k width or height
...
Fixes: 03e0abe721b1174856d41a1eb5d6a896/signal_sigabrt_7ffff6ae7cc9_3813_e71bf3541abed3ccba031cd5ba0269a4.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0eb7de1973 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:46 +01:00
Michael Niedermayer
c3a44a2a55
avcodec/jpeg2000dec: Check SIZ dimensions to be within the supported range
...
Fixes potential integer overflows
Fixes: 03e0abe721b1174856d41a1eb5d6a896/signal_sigabrt_7ffff6ae7cc9_3813_e71bf3541abed3ccba031cd5ba0269a4.avi
This fix is choosen to be simple to backport, better solution
for master is planed
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6ef819c40b )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:46 +01:00
Michael Niedermayer
d1d48d4319
avcodec/jpeg2000: Check comp coords to be within the supported size
...
Fixes assertion failure
Fixes: 03e0abe721b1174856d41a1eb5d6a896/signal_sigabrt_7ffff6ae7cc9_3813_e71bf3541abed3ccba031cd5ba0269a4.avi
This fix is choosen to be simple to backport, better solution
for master is planed
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a1a8cbcb35 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:46 +01:00
Andreas Cadhalpun
6b0bc64f54
mpegvideo: clear overread in clear_context
...
Otherwise the h263p decoder can try to copy overread bytes, even though
buffer is NULL.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 6a69a175e7 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:46 +01:00
Michael Niedermayer
983e63b490
avcodec/avrndec: Use the AVFrame format instead of the context
...
Fixes out of array read
Fixes: 20dd01398dee0f6d83d7e5410a2ae8eb/signal_sigsegv_39eeb1f_4001_62efbdf1c60748dabf1ec310b59525fd.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ccba8aaff2 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:46 +01:00
Andreas Cadhalpun
bf2f7115d9
dds: disable palette flag for compressed images
...
Having both is not valid and can cause a NULL pointer dereference of
frame->data[1] later.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
(cherry picked from commit 0a8bff788b )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:46 +01:00
Andreas Cadhalpun
ef699b4135
dds: validate compressed source buffer size
...
A too small buffer will cause segfaults somewhere below
decompress_texture_thread.
Reviewed-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 9a37d47644 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:46 +01:00
Andreas Cadhalpun
a8513826dd
dds: validate source buffer size before copying
...
If it is too small av_image_copy_plane segfaults.
Reviewed-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 1675809d2d )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:46 +01:00
Andreas Cadhalpun
df31acda64
dvdsubdec: validate offset2 similar to offset1
...
If it is negative, it causes segmentation faults in decode_rle.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit f621749d11 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:45 +01:00
Andreas Cadhalpun
d09fd0736a
brstm: reject negative sample rate
...
A negative sample rate causes assertion failures in av_rescale_rnd.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 7b67fe20f6 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:45 +01:00
Andreas Cadhalpun
c3f276b608
aacps: avoid division by zero in stereo_processing
...
This fixes a SIGFPE crash in the aac_fixed decoder.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com >
(cherry picked from commit ef7fe9851e )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:45 +01:00
Andreas Cadhalpun
510d88ae93
softfloat: assert when the argument of av_sqrt_sf is negative
...
The correct result can't be expressed in SoftFloat.
Currently it returns a random value from an out of bounds read.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit f3866a14c3 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:45 +01:00
Michael Niedermayer
c4133b25f8
avcodec/takdec: Use memove, avoid undefined memcpy() use
...
Fixes: e214333cbd94c91228e624ff39329ce6/asan_generic_4a5159_6412_96cda2530e80607210ab41ccae3d456d.tak
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 7cea3430a5 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-11-26 01:35:41 +01:00
Michael Niedermayer
c9b3451da3
Update Changelog
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-12 01:17:17 +01:00
Andreas Cadhalpun
46f83b059b
aacsbr_fixed: check for envelope scalefactors overflowing
...
This prevents various values from getting an insanely huge exponent.
If someone knows a cleaner solution, thats welcome!
This is similar to commit 8978c74 for aacsbr.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 0e36a14a42 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-12 00:43:01 +01:00
Andreas Cadhalpun
ce2664f5f7
aacdec: don't return frames without data from aac_decode_er_frame
...
This is similar to commit ec38a1b for aac_decode_frame_int.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d7f29bfa69 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-12 00:42:50 +01:00
Michael Niedermayer
8364d607ac
avcodec/aacsbr_fixed: Try to initialize sum[0..1] differently to fix build with VS2012
...
Found-by: Hendrik Leppkes <h.leppkes@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 8a024f6a43 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-12 00:42:43 +01:00
Michael Niedermayer
21e42d9b0d
avcodec/aacsbr: Use FLOAT_0
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit dcf1cf5d24 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-12 00:42:35 +01:00
Andreas Cadhalpun
e10c353ca5
softfloat: handle INT_MIN correctly in av_int2sf
...
Otherwise v=INT_MIN doesn't get normalized and thus triggers av_assert2
in other functions.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 9ac61e73d0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-12 00:00:57 +01:00
Michael Niedermayer
72be96ac55
avutil/softfloat: Include negative numbers in cmp/gt tests
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 955cdc43a3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-12 00:00:57 +01:00
Michael Niedermayer
6581e40e1a
avutil/softfloat: Fix av_gt_sf() with large exponents try #2
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 05b05a7a84 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-12 00:00:57 +01:00
Michael Niedermayer
0f9c617979
avutil/softfloat: Add test for av_gt_sf()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 791ea23e57 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-12 00:00:57 +01:00
Michael Niedermayer
f9998d1994
avutil/softfloat: Extend the av_cmp_sf() test to cover a wider range of exponents
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit ecfb076141 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-12 00:00:57 +01:00
Michael Niedermayer
7ad4bf4899
avutil/softfloat: Fix overflows in shifts in av_cmp_sf() and av_gt_sf()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit cee3c9d29a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-12 00:00:57 +01:00
Michael Niedermayer
43ada90fc5
avutil/softfloat: Add test for av_cmp_sf()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit df2a2117d2 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-12 00:00:57 +01:00
Ganesh Ajjanagadde
476ddffccb
avutil/common: add FFDIFFSIGN macro
...
This is of use for defining comparator callbacks. Common approaches like
return x-y are not safe due to the risks of overflow.
Furthermore, the (x > y) - (x < y) trick is optimized to branchless
code.
This also documents this macro accordingly.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
(cherry picked from commit 265f83fd35 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-12 00:00:57 +01:00
Michael Niedermayer
b533998d0a
avutil/softfloat: Add tests for exponent underflows
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 596dfe7d6c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 23:32:58 +01:00
Michael Niedermayer
acd203fc0d
avutil/softfloat: Fix exponent underflow in av_div_sf()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 046218b212 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 23:32:54 +01:00
Michael Niedermayer
402c4a9f81
avutil/softfloat: Fix exponent underflow in av_mul_sf()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a1e3303fc0 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 23:32:51 +01:00
Michael Niedermayer
6e4bfbe936
avutil/softfloat: Fix typo in av_mul_sf() doxy
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4135a2bfd6 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 23:32:48 +01:00
Michael Niedermayer
f38beb47da
avutil/softfloat: Correctly set the exponent for 0.0 in av_sqrt_sf()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 107db5abf3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 23:32:32 +01:00
Michael Niedermayer
efa9128556
avutil/softfloat: FLOAT_0 should use MIN_EXP
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a66b243d52 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 23:32:27 +01:00
Michael Niedermayer
3de8521667
swresample/resample: increase precision for compensation
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 351e625d60 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 18:41:01 +01:00
Rodger Combs
edf5e88eac
lavf/mov: add support for sidx fragment indexes
...
Fixes trac #3842
(cherry picked from commit 4ab5666759 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 02:50:39 +01:00
Michael Niedermayer
8d634be4ce
update versions for 2.8.2
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-11 02:50:39 +01:00
Michael Niedermayer
9a6d581076
avformat/mxfenc: Only store user comment related tags when needed
...
Also support disabling them as they seem to cause problems to some
Users. They are also not allowed in IRT D-10 thus the default for
mxf_d10 is not to write them
This also decreases the filesize when no user comment are stored
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d9726893f3 )
Conflicts:
libavformat/mxfenc.c
2015-11-11 02:21:32 +01:00
Michael Niedermayer
84f8157662
tests/fate/avformat: Fix fate-lavf
...
The CMP variable seems to have been inherited from fate-api-seek which set it to null
the mxf reference needed a change due to c7e14a279f
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b83c849e87 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-10 11:20:21 +01:00
Simon Thelen
e5a2f5e74d
doc/ffmpeg: Clarify that the sdp_file option requires an rtp output.
...
Signed-off-by: Simon Thelen <ffmpeg-dev@c-14.de >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b02201efb5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-09 23:58:05 +01:00
Simon Thelen
dac3598563
ffmpeg: Don't try and write sdp info if none of the outputs had an rtp format.
...
Fixes a segfault when trying to write nonexistent rtp information.
Signed-off-by: Simon Thelen <ffmpeg-dev@c-14.de >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 70fb5eadc5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-09 23:56:29 +01:00
Andreas Cadhalpun
c0cd8747ef
apng: use correct size for output buffer
...
The buffer needs s->bpp bytes, at maximum currently 10.
Assert that s->bpp is not larger.
This fixes a stack buffer overflow.
Reviewed-by: wm4 <nfxjfg@googlemail.com >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 3e8e1a660e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-07 14:11:12 +01:00
Andreas Cadhalpun
e217224456
jvdec: avoid unsigned overflow in comparison
...
The return type of strlen is size_t, i.e. unsigned, so if pd->buf_size
is 3, the right side overflows leading to a wrong result of the
comparison and subsequently a heap buffer overflow.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit db374790c7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-07 14:10:41 +01:00
Michael Niedermayer
56419053bc
avcodec/jpeg2000dec: Clip all tile coordinates
...
Fixes out of array access
Fixes: b877a6b788a25c70e8b1d014f8628549/asan_heap-oob_1da2c3f_2324_5a1b329b0b3c4bb6b1d775660ac56717.r3d
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 43492ff3ab )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-07 03:02:04 +01:00
Michael Niedermayer
11b4822ddb
avcodec/microdvddec: Check for string end in 'P' case
...
Fixes out of array read
Fixes: a9502b60f4cecc19475382aee255f73c/asan_heap-oob_1e87fba_2548_a8ad47f6dde36644fe9cdc444d4632d0.sub
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c719cd6cf7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-07 01:10:58 +01:00
Michael Niedermayer
2de2959305
avcodec/dirac_parser: Fix undefined memcpy() use
...
Fixes: 9d375e415486edd1a0c826f2307d89a4/asan_generic_4a5159_1577_faa333e83dacdd9e4dd322380aeed537.iss
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit daefd8ab2f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-07 01:10:16 +01:00
Michael Niedermayer
b93a8bd838
avformat/xmv: Discard remainder of packet on error
...
Fixes infinite loop
Fixes: 9c48ae2680c5f23bca3d20ff0f325fd8/asan_generic_4c254d_1374_993f1e5967dd6f844b8d72f978ce2a6c.pss
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 79c4a338e4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-06 02:55:48 +01:00
Michael Niedermayer
2817eb514c
avformat/xmv: factor return check out of if/else
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9b6fac11da )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-06 02:55:13 +01:00
Michael Niedermayer
6e085f9a32
avcodec/mpeg12dec: Do not call show_bits() with invalid bits
...
Fixes assertion failure
Fixes: 63e50545709a6440d3d59f6426d58db9/signal_sigabrt_7ffff6ae7cc9_8189_3272a3010fd98ddf947c662bbde1ac13.ts
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 973c3dba27 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-06 01:17:00 +01:00
Michael Niedermayer
a7bbb7fb88
avcodec/faxcompr: Add missing runs check in decode_uncompressed()
...
Fixes out of array access
Fixes: 54e488b9da4abbceaf405d6492515697/asan_heap-oob_32769b0_160_a8755eb08ee8f9579348501945a33955.TIF
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d4a731b84a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-05 21:50:14 +01:00
Michael Niedermayer
1290037626
libavutil/channel_layout: Check strtol*() for failure
...
Fixes assertion failure
Fixes: 4f5814bb15d2dda6fc18ef9791b13816/signal_sigabrt_7ffff6ae7cc9_65_7209d160d168b76f311be6cd64a548eb.wv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c9bfd6a8c3 )
Conflicts:
libavutil/channel_layout.c
2015-11-05 20:47:15 +01:00
Michael Niedermayer
c7174d5204
avformat/mpegts: Only start probing data streams within probe_packets
...
Fixes assertion failure
Fixes: 4321db8ac331f5967ebfbfe80ce5eb78/signal_sigabrt_7ffff6ae7cc9_7213_0d6457b9d6897fa7c78507fa5de53510.ts
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3692d859f4 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-05 18:23:11 +01:00
Michael Niedermayer
ff30907205
avcodec/hevc_ps: Check chroma_format_idc
...
Fixes out of array access
Fixes: 24d05e8b84676799c735c9e27d97895e/asan_heap-oob_1b70f6a_2955_7c3652a7f370f9f3ef40642bc2c99bb2.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 93f30f825c )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-05 15:17:56 +01:00
Michael Niedermayer
a6ae88bb25
avcodec/ffv1dec: Check for 0 quant tables
...
Fixes assertion failure
Fixes: 07ec1fc3c1cbf2d3edcd7d9b52ca156c/asan_heap-oob_13624c5_491_ecd4720a03e697ba750b235690656c8f.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5745cf799a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-05 01:49:09 +01:00
Michael Niedermayer
4567cba0b8
avcodec/mjpegdec: Reinitialize IDCT on BPP changes
...
Fixes misaligned access
Fixes: dc9262a469f6f315f74c087a7b3a7f35/signal_sigsegv_2e95bcd_9_9c0f9f4a9ba82aa9b3ab2b91ce4d5277.jpg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit cc35f6f476 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-04 22:16:38 +01:00
Michael Niedermayer
fdb8842639
avcodec/mjpegdec: Check index in ljpeg_decode_yuv_scan() before using it
...
Fixes: 04715144ba237443010554be0d05343f/asan_heap-oob_1eafc76_1737_c685b48041a563461839e4e7ab97abb8.jpg
Fixes out of array access
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d24888ef19 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-04 19:42:29 +01:00
Tobias Rapp
c6c801d993
avutil/file_open: avoid file handle inheritance on Windows
...
Avoids inheritance of file handles on Windows systems similar to the
O_CLOEXEC/FD_CLOEXEC flag on Linux.
Fixes file lock issues in Windows applications when a child process
is started with handle inheritance enabled (standard input/output
redirection) while a FFmpeg transcoding is running in the parent
process.
Links relevant to the subject:
https://msdn.microsoft.com/en-us/library/w7sa2b22.aspx
Describes the _wsopen() function and the O_NOINHERIT flag. File handles
opened by _wsopen() are inheritable by default.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx
Describes handle inheritance when creating new processes. Handle
inheritance must be enabled (bInheritHandles = TRUE) e.g. when you want
to pass handles for stdin/stdout via lpStartupInfo.
Signed-off-by: Tobias Rapp <t.rapp@noa-audio.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4746653466 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-11-02 19:15:32 +01:00
Michael Niedermayer
aa34146e41
avcodec/h264_slice: Disable slice threads if there are multiple access units in a packet
...
Fixes null pointer dereference
Fixes part of Ticket4977
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 9368d2da3d33cac845f2fdf663df500b53625c5e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-31 22:57:52 +01:00
Lucas de Andrade
fcb8ee98f6
avformat/hls: update cookies on setcookie response
...
Context cookies must be updated when a playlist response return Setcookie header.
See: 770dd10504
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-30 18:12:30 +01:00
Kieran Kunhya
2f5f940bef
opusdec: Don't run vector_fmul_scalar on zero length arrays
...
Fixes crashes on fuzzed files
Fixes Ticket4969 part2
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b3e5f15b95 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-30 17:55:31 +01:00
Michael Niedermayer
6ac9d6303f
avcodec/opusdec: Fix extra samples read index
...
Fixes crash
Fixes Ticket4969 part 1
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 07225fa74f )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-30 17:55:31 +01:00
Michael Niedermayer
81a2ad762b
avcodec/ffv1: Initialize vlc_state on allocation
...
This ensures that they are always set to valid values
Fixes Ticket4939
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a878dfa4f5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-30 17:55:31 +01:00
Michael Niedermayer
c8a1324d1e
avcodec/ffv1dec: update progress in case of broken pointer chains
...
Fixes deadlock
Fixes Ticket4932
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 5063a18f56 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-30 17:55:31 +01:00
Michael Niedermayer
6a0e10ae0d
avcodec/ffv1dec: Clear slice coordinates if they are invalid or slice header decoding fails for other reasons
...
Fixes Ticket4931
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 4c2d4e8700 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-30 17:55:31 +01:00
Martin Storsjö
3f3e12c768
rtsp: Allow $ as interleaved packet indicator before a complete response header
...
Some RTSP servers ("HiIpcam/V100R003 VodServer/1.0.0") respond to
our keepalive GET_PARAMETER request by a truncated RTSP header
(lacking the final empty line to indicate a complete response
header). Prior to 764ec70149 , this worked just fine since we
reacted to the $ as interleaved packet indicator anywhere.
Since $ is a valid character within the response header lines,
764ec70149 changed it to be ignored there. But to keep
compatibility with such broken servers, we need to at least
allow reacting to it at the start of lines.
Fixes ticket #4952 .
Signed-off-by: Martin Storsjö <martin@martin.st >
(cherry picked from commit e02dcdf6bb )
2015-10-27 13:40:06 +01:00
Ronald S. Bultje
6616762134
videodsp: don't overread edges in vfix3 emu_edge.
...
Fixes trac ticket 3226. Also see Andreas' analysis in
https://bugs.debian.org/801745 , which was very helpful.
(cherry picked from commit 52f84d82bd )
2015-10-25 01:05:31 +02:00
wm4
96b87d5cfa
avformat/mp3dec: improve junk skipping heuristic
...
Commit 2b3e9bbfb5 caused problems for a
certain API user:
https://code.google.com/p/chromium/issues/detail?id=537725
https://code.google.com/p/chromium/issues/detail?id=542032
The problem seems rather arbitrary, because if there's junk, anything
can happen. In this case, the imperfect junk skipping just caused it to
read different junk, from what I can see.
We can improve the accuracy of junk detection by a lot by checking if 2
consecutive frames use the same configuration. While in theory it might
be completely fine for the 1st frame to have a different format than the
2nd frame, it's exceedingly unlikely, and I can't think of a legitimate
use-case.
This is approximately the same mpg123 does for junk skipping. The
set of compared header bits is the same as the libavcodec mp3 parser
uses for similar purposes.
(cherry picked from commit de1b1a7da9 )
2015-10-20 12:35:43 +02:00
Marton Balint
e0e28dad90
concatdec: fix file_start_time calculation regression
...
Fixes ticket #4924 .
Found-by: Jaroslav Šnajdr <jsnajdr@gmail.com >
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Marton Balint <cus@passwd.hu >
(cherry picked from commit df239b7619 )
2015-10-17 22:36:33 +02:00
周晓勇
1a67b0f9ae
avcodec: loongson optimize h264dsp idct and loop filter with mmi
...
Change-Id: Ic87fb8f5cd22a502ff9dbbc5a5a8ea97cfc8a1dd
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-16 14:47:56 +02:00
Michael Niedermayer
e3fcd88f08
avcodec/jpeg2000dec: Clear properties in jpeg2000_dec_cleanup() too
...
Fixes: Ticket4878
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit c980c5e54d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-16 14:47:56 +02:00
Anssi Hannula
68a6178ef0
avformat/hls: add support for EXT-X-MAP
...
Without EXT-X-MAP support we miss the first bytes of some streams.
These streams worked by luck before byte-ranged segment support was added in
da7759b357
Fixes ticket #4797 .
(cherry picked from commit 9099079488 )
Conflicts:
libavformat/hls.c
2015-10-15 14:27:20 +02:00
Anssi Hannula
d51ddd45b2
avformat/hls: fix segment selection regression on track changes of live streams
...
Commit ad701326b4 ("avformat/hls: open playlists immediately when
AVDISCARD_ALL is dropped") inadvertently caused first_packet to never be
cleared, causing select_cur_seq_no() to not use the specific code for
live streams.
In practice this means that when the user selects a different audio
track during live stream (i.e. non-VOD) playback, there may be some
additional delay as the code might select an incorrect segment at first,
and we have to wait for video to catch audio (if too late segment was
selected) or to download more following audio segments (if too early
segment was selected).
Fix that by restoring the zeroing of first_packet.
(cherry picked from commit fd74d45d51 )
2015-10-15 14:21:29 +02:00
Carl Eugen Hoyos
c2db8ebc08
configure: Require libkvazaar < 0.7.
...
Fixes ticket #4925 .
Reviewed-by: Arttu Ylä-Outinen
2015-10-14 14:15:30 +02:00
Michael Niedermayer
b46efcb293
avcodec/vp8: Do not use num_coeff_partitions in thread/buffer setup
...
The variable is not a constant and can lead to race conditions
Fixes: repro.webm (not reproducable with FFmpeg alone)
Found-by: Dale Curtis <dalecurtis@google.com >
Tested-by: Dale Curtis <dalecurtis@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit dabea74d0e )
2015-10-14 14:15:11 +02:00
Michael Niedermayer
40934e0e9b
Update for 2.8.1
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-13 20:44:52 +02:00
Pedro Arthur
bb3b4ad460
swscale: fix ticket #4881
...
When scaling only a slice of a frame the output was written always
in the first lines leaving the rest of the frame black.
(cherry picked from commit 5bd62a1b3c )
2015-10-13 20:11:42 +02:00
Andreas Cadhalpun
13d3749424
doc: fix spelling errors
...
Reviewed-by: Lou Logan <lou@lrcd.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit 8d6625642d )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-10-12 21:46:54 +02:00
Andreas Cadhalpun
173053a125
hls: only seek if there is an offset
...
If there is no #EXT-X-BYTERANGE specified, there is no need to seek.
Seeking fails anyway for rtmp, because this protocol does not support
url_seek.
This fixes CNN.m3u from trac ticket 4797 (i.e. Debian bug #798189 ).
Reviewed-by: wm4 <nfxjfg@googlemail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
(cherry picked from commit f9f0b4c08e )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-10-12 21:46:54 +02:00
Alexandra Hájková
8118fdf8bb
asfdec: add more checks for size left in asf packet buffer
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
(cherry picked from commit c0a49077ea )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-10-12 21:46:54 +02:00
Alexandra Hájková
f235f511a0
asfdec: alloc enough space for storing name in asf_read_metadata_obj
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
(cherry picked from commit 77cf236689 )
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-10-12 21:46:54 +02:00
Michael Niedermayer
c149a4afee
avcodec/pngdec: Check blend_op.
...
Fixes CID1322359, CID1322358
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1e7e4f13f9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-12 02:23:36 +02:00
赵宇龙
02d8abf0f5
h264_mp4toannexb: fix pps offfset fault when there are more than one sps in avcc
...
the pps offset is used to locate pps in the spspps_buf; however, the
current calc method is wrong because it is the offset of the original
avctx->extradata;
when there is only one sps in the avcc; the value is correct by
coincidence, however, it will
fail in avcc with multi sps
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 6b32d0d86b6bec2b5cb565d6ab4556f8cd66214a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-12 02:23:36 +02:00
Michael Niedermayer
9579550b2b
avcodec/h264_mp4toannexb_bsf: Use av_freep() to free spspps_buf
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3d126ef188 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-12 02:23:36 +02:00
Michael Niedermayer
7ec05ae969
avformat/avidec: Workaround broken initial frame
...
Fixes Ticket4851
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 3e2ef00394 )
2015-10-09 21:15:15 +02:00
wm4
b9841ba98c
avformat/hls: fix some cases of HLS streams which require cookies
...
Broken by commit ba12ba859a . This only
happens with HLS streams which use encryption and require preserving
cookies sent by the server.
Fixes trac issue #4846 .
(cherry picked from commit 26eb294007 )
2015-10-09 21:14:23 +02:00
Paul B Mahol
39df4d2475
avcodec/pngdec: reset has_trns after every decode_frame_png()
...
Fixes #4887 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
(cherry picked from commit 1d0487f77f )
2015-10-09 21:14:02 +02:00
Przemysław Sobala
635831c087
lavf/img2dec: Fix memory leak
...
Fixes #4886
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 01dd7e025c )
2015-10-09 21:13:49 +02:00
wm4
291a2f1ea7
avcodec/mp3: fix skipping zeros
...
Commits 43bc5cf9 and c5371f77 add code for skipping initial zeros in mp3
packets. This code forgot to report to the user that data was skipped at
all.
Since audio codecs allow partial packet decoding, the user application
has to rely on the return value. It will remove the data reported as
consumed by the decoder, and feed it to the decoder again. This resulted
in the mp3 frame after the zero region to be decoded over and over
again, until the zero region was finally skipped by the application.
Fix this by including the amount of skipped bytes to the number of
consumed bytes returned by the decode call.
Fixes trac ticket #4890 .
(cherry picked from commit cb1da9fb8d )
2015-10-09 21:12:30 +02:00
Clément Bœsch
ee1bcd3436
avformat/srtdec: make sure we probe a number
...
Fixes regression since 7218352e02 : WebVTT
files were matching the SRT probing.
(cherry picked from commit 40d9d6de90 )
2015-10-09 10:56:31 +02:00
James Almer
408240267a
configure: check for ID3D11VideoContext
...
Should fix compilation with mingw-w64 trunk, where ID3D11VideoDecoder is available
but ID3D11VideoContext still isn't.
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit b8e4df46ab )
2015-10-08 17:08:04 -03:00
wm4
eca7b0dcce
avformat/vobsub: compare correct packet stream IDs
...
The stream ID is essentially an arbitrary number defined by the .idx
file headers. They have to match the IDs in the .sub stream. The vobsub
demuxer assumed the IDs would just start from 0, increassing by 1 for
each stream. This is not correct. In the sample I had, the IDs were
starting from 1, leading to no subtitles being displayed at all.
Fix this by using the correct stream ID.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a47ad06baf )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 15:21:45 +02:00
Clément Bœsch
64b659673a
avformat/srtdec: more lenient first line probing
...
Fixes Ticket #4898
(cherry picked from commit 7218352e02 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 15:21:39 +02:00
Clément Bœsch
1d9d300d65
avformat/srtdec: fix number check for the first character
...
(cherry picked from commit d161a2a72b )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 15:21:24 +02:00
Shivraj Patil
a931ad554d
avcodec/mips: build fix for MSA 64bit
...
Modified datatype of function argument (pitch from int32_t to ptrdiff_t).
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Commit in master: 322e960dbf
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 14:32:05 +02:00
Shivraj Patil
7236080d27
avcodec/mips: build fix for MSA
...
Modified sps and pps access from old HEVCContext(s) structure to newly introduced HEVCParamSets(ps).
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Commit in master: b0732b0214
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 14:31:49 +02:00
Andrey Utkin
6dcd2ebd34
avformat/httpauth: Add space after commas in HTTP/RTSP auth header
...
This fixes access to Grandstream cameras, which return 401 to ffmpeg
otherwise.
VLC sends Authorization: header with spaces between parameters, and it
is known to work with Grandstream devices and broad range of other HTTP
and RTSP servers, so author considers switching to such behaviour safe.
Just for record - RFC 2617 (HTTP Auth) does not specify the need in
spaces, so this is not a bug of FFmpeg.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit fdb3283872 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
DHE
83d75c70df
libavformat/hlsenc: Use of uninitialized memory unlinking old files
...
Fixes ticket#4900
Signed-off-by: DHE <git@dehacked.net >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 76e3f8242d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Michael Niedermayer
818ebcbf5c
avcodec/x86/sbrdsp: Fix using uninitialized upper 32bit of noise
...
Fixes crash
Fixes: flicker-1.scout3d21443372922.28.m4a
Found-by: Dale Curtis <dalecurtis@google.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 1b82b934a1 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Michael Niedermayer
837113ab5f
avcodec/ffv1dec: Fix off by 1 error in quant_table_count check
...
Fixes: invalid_read.nut
Found-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2d221d9e06 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Michael Niedermayer
97340bdfa3
avcodec/ffv1dec: Explicitly check read_quant_table() return value
...
Forwards the error code, avoids potential integer overflow
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 10bbf6cf62 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Jeremy James
61fd5a3072
dnxhddata: correct weight tables
...
CID 1260 (as evidenced by incorrect decoding of a sample from ticket
4876) seems to use incorrect weight tables. It appears those tables
were not zigzag-scanned.
Apply zigzag on weight tables for new CIDs 1258, 1259, and 1260, and
fix an incorrect chroma table for CID 1256.
Fixes last issue from ticket #4876 .
Found-by: Christophe Gisquet <christophe.gisquet@gmail.com >
Signed-off-by: Christophe Gisquet <christophe.gisquet@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 428424fe75 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Christophe Gisquet
f5f9c166a1
dnxhddec: decode and use interlace mb flag
...
This bit is 1 in some samples, and seems to coincide with interlaced
mbs and CID1260. 2008 specs do not know about it, and maintain qscale
is 11 bits. This looks oversized, but may help larger bitdepths.
Currently, it leads to an obviously incorrect qscale value, meaning
its syntax is shifted by 1. However, reading 11 bits also leads to
obviously incorrect decoding: qscale seems to be 10 bits.
However, as most profiles still have 11bits qscale, the feature is
restricted to the CID1260 profile.
The encoder writes 12 bits of syntax, last and first bits always 0,
which is now somewhat inconsistent with the decoder, but ends up with
the same effect (progressive + reserved bit).
Partially fixes ticket #4876 .
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2801a1352d )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Pedro Arthur
01bf0a178d
swscale: fix ticket #4877
...
(cherry picked from commit a8602dde5e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Michael Niedermayer
3cd1be9702
avcodec/rangecoder: Check e
...
Fixes hang.nut
Found-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b2955b6c5a )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Michael Niedermayer
d4b1fe72c2
avcodec/ffv1: seperate slice_count from max_slice_count
...
Fix segfault with too large slice_count
Fixes Ticket4879
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit aa6c43f3fd )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Pedro Arthur
a8d0dcbafa
swscale: fix ticket 4850
...
(cherry picked from commit 77367f61b3 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Michael Niedermayer
2a6103a082
cmdutils: Filter dst/srcw/h
...
Dimensions / pixel formats for scaling must be set through the -s / pix_fmt options
or the scale / format filters. Otherwise there are mismatches between whet is
in/output to the scaler and for what the scaler is configured
Fixes Ticket4856
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a0af9fd954 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Ganesh Ajjanagadde
3fedd64d4b
avutil/log: fix zero length gnu_printf format string warning
...
This should fix warning reported by fate client:
http://fate.ffmpeg.org/report.cgi?time=20150917113121&slot=x86_32-linux-gnu-gcc-4.5.1-have_6regs .
Untested.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 63cdb6e4a5 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Simon Thelen
9bbcd1cc7b
lavf/webvttenc: Require webvtt file to contain exactly one WebVTT stream.
...
Not requiring this can end up producing hilariously broken files
together with -c:s copy (e.g. a webvtt file containing binary subtitle data).
Signed-off-by: Simon Thelen <ffmpeg-dev@c-14.de >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit b84232694e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Michael Niedermayer
9801c9524a
swscale/swscale: Fix "unused variable" warning
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0ae40c5a70 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Michael Niedermayer
08fc0d771a
avcodec/mjpegdec: Fix decoding RGBA RCT LJPEG
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 055e56e9f7 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
Michael Niedermayer
a3db85581e
MAINTAINERS: add 2.8, drop 2.2
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-10-08 13:15:42 +02:00
James Almer
ddbb8d5eda
doc: mention libavcodec can decode Opus natively
...
Signed-off-by: James Almer <jamrial@gmail.com >
(cherry picked from commit fd9ac48dc8 )
2015-09-20 23:30:50 -03:00
Hendrik Leppkes
41aa6b2095
hevc: properly handle no_rasl_output_flag when removing pictures from the DPB
...
Fixes ticket #4185 .
Reviewed-By: Mickael Raulet <Mickael.Raulet@insa-rennes.fr >
Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-09-20 00:18:57 +02:00
Paul B Mahol
fb0d41932d
avfilter/af_ladspa: process all channels for nb_handles > 1
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
(cherry picked from commit dc1050a3e8 )
2015-09-16 12:50:13 +00:00
Ricardo Constantino
aa46ae8848
configure: add libsoxr to swresample's pkgconfig
...
Fixes linking in FFMS and f265 at least, when ffmpeg is compiled with
libsoxr.
Signed-off-by: Ricardo Constantino <wiiaboo@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 2641eeeefe )
Signed-off-by: Timothy Gu <timothygu99@gmail.com >
2015-09-09 07:41:33 -07:00
Hendrik Schreiber
c3021738fc
lavc: Fix compilation with --disable-everything --enable-parser=mpeg4video.
...
(cherry picked from commit 9d742d23d2 )
2015-09-09 16:23:26 +02:00
Michael Niedermayer
b72c184194
avcodec/h264_sei: Remove "Subtitles with data type 0x%02x" sample request
...
Suggested-by: Carl and Hendrik
2015-09-08 23:02:00 +02:00
Michael Niedermayer
d86c5f8de8
RELEASE_NOTES based on 2.7
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-08 22:33:04 +02:00
周晓勇
0752e44b1f
avcodec: loongson delete invalid simple idct put and add optimization
...
Change-Id: I23a36c65915f01a1cf20e317c14b8eaaa62958b4
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Fixes Decoding of http://loongnix.org/ftp/multimedia/testing/nanocore_720p_24fps_mpeg4_ac3_short.avi
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit a78656a187 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-08 22:31:44 +02:00
Michael Niedermayer
1d42df7292
Add NOA credits
2015-09-08 22:31:44 +02:00
Gwenole Beauchesne
eaabfe8ef8
vaapi: fix local header include.
...
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com >
(cherry picked from commit aea611dc3e )
2015-09-07 15:32:56 +02:00
Michael Niedermayer
90d29c3d04
Changelog: Add 2.8
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-06 16:00:01 +02:00
Michael Niedermayer
48211b0c0d
set version to 2.8
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-06 15:48:55 +02:00
Ganesh Ajjanagadde
aa661d3672
avfilter/af_asyncts: use llabs for int64_t
...
long may not be 64 bit on all platforms; so labs on int64_t is unsafe.
This fixes a warning reported in:
http://fate.ffmpeg.org/log.cgi?time=20150905071512&log=compile&slot=i386-darwin-clang-polly-3.7
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit d74123d03e )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-06 12:11:23 +02:00
Zhang Rui
8cd24f8fe7
avformat/async: replace strerror with av_err2str
...
Fixes CID1322337
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 929451c5cb )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-06 11:56:54 +02:00
Rostislav Pehlivanov
7e853879ce
fate: increase the fuzz of the AAC encoder aref test
...
Almost fine on SunOS without yasm but 5 wasn't enough.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-06 00:27:08 +02:00
Michael Niedermayer
f598ca088e
doc/APIchanges: Fill in missing fields and correct one lavu version
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 0acd4e75fd )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-05 18:34:01 +02:00
Michael Niedermayer
2710c14a83
doc/APIchanges: add 2.8 cut line
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
(cherry picked from commit 982e235d76 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-05 18:33:58 +02:00
James Almer
1a56be9cdc
avutil: undo FF_API_CRYPTO_CONTEXT deprecation for 2.8 release
...
There's no consensus yet if this deprecation is desired, so it's removed
from this release for the time being
Signed-off-by: James Almer <jamrial@gmail.com >
2015-09-05 13:02:29 -03:00
Michael Niedermayer
8ca97b5e4f
avfilter/avf_showfreqs: Fix memleak of out frame
...
Fixes CID1322344
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-05 15:46:18 +02:00
Michael Niedermayer
0ada8ec1a5
avfilter/avf_showfreqs: Fix "may be used uninitialized in this function" warning
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-05 15:34:35 +02:00
Michael Niedermayer
7213d3fbf3
avfilter/avf_showfreqs: Free fin
...
Fixes CID1322345
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-05 15:32:00 +02:00
Michael Niedermayer
a3ad51e0d5
avfilter/af_amerge: avoid undefined shift (<<64) in outlayout setup
...
Fixes CID1322306
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-05 15:14:09 +02:00
Michael Niedermayer
7eab904d11
avfilter/vf_stack: Fix memleak of out frame
...
Fixes CID1322347
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-05 14:41:45 +02:00
Michael Niedermayer
4eca1939ef
avformat/hls: Check for av_opt_set_dict() failure
...
Fixes: CID1320426
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-05 14:28:08 +02:00
Michael Niedermayer
c41a59330f
avcodec/rawenc: Use AVFrame parameters instead of AVCodecContext
...
This allows encoding raw frames with changing dimensions
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-05 11:56:23 +02:00
Michael Niedermayer
5d859e5980
avfilter/avfilter: Add a few more basic filters to the list which support frame size changes
...
Fixes assertion failures
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-05 11:43:27 +02:00
Carl Eugen Hoyos
da8eb70dc3
lavf/aiffenc: Clarify an error message.
...
Only one audio stream is allowed in aiff.
2015-09-05 10:53:55 +02:00
Rostislav Pehlivanov
5ab3b6a8a5
fate: adjust AAC encoder TNS test target
...
The new commits improve the quality.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-05 09:11:05 +01:00
Rostislav Pehlivanov
e3faad811e
aacenc_tns: adjust coefficient calculation, add double filter support
...
This commit improves the TNS implementation to the point where it's
actually usable and very rarely results in nastyness (in all bitrates
except extremely low bitrates it's increasing the quality and prevents
some distortions from the coder being audiable).
Also adds a double filter support which is only used if the energy
difference between the top and bottom of the SFBs is above the
thresholds defined in the header file. Looking at the bitstream
that fdk_aac generates it sometimes used a double filter despite
the specs stating that a single filter should be enough for almost
all cases and purposes.
Unlike FAAC or fdk_aac we sometimes use a reverse filter in case
the energy difference isn't enought to use a double filter. This
actually works better.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-05 09:08:30 +01:00
Rostislav Pehlivanov
7591f8319b
lpc: increase error array size of ff_lpc_calc_ref_coefs_f by one
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-05 08:51:19 +01:00
Rostislav Pehlivanov
4565611b04
aacenc_is: add a flag to use pure coefficients instead
...
This commit adds a flag to use the pure coefficients instead
of the processed ones (sce->coeffs). This is needed because
IS will apply the changes to the coefficients immediately
before the adjust_common_prediction function and it doesn't
make sense to measure stereo channel coefficient difference
when one of the channels coefficients are all zero.
Therefore add a flag to use pure coefficients in that case.
TNS is the only thing touching the coefficients before IS
so common window prediction will not take that into account
but the effect of the TNS filter per coefficient can be small
(a few percent) so to some approximation it's fine to just
ignore that.
Also fixed a small error which doesn't alter the results
that much. pow(sqrt(number), 3.0/4.0) == pow(number, 3.0/8.0) !=
pow(number, 3.0/4.0).
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-05 08:32:09 +01:00
Michael Niedermayer
a87ada53c3
avcodec/jpeg2000dec: Initialize ret to avoid warning and make the code more robust
...
"Fixes" CID1322361
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-05 00:38:21 +02:00
Michael Niedermayer
9e70475551
avcodec/jpeg2000dec: Assert that step_x/y are valid
...
Fixes CID1322304, CID1322305
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-05 00:37:53 +02:00
Michael Niedermayer
205c31b301
avcodec/hapdec: Check section_size for non negativity in parse_section_header()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-05 00:37:53 +02:00
Arnaud Bienner
0cdba4ac68
lavf/mxfdec: Support more codecs in mxf_picture_essence_container_uls[].
...
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at >
2015-09-05 00:11:14 +02:00
Arnaud Bienner
35ab967f52
lavf/mxf: Support video essence container uls for vc1.
...
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at >
2015-09-05 00:09:13 +02:00
Arnaud Bienner
fd6b38bed7
lavf/riff: Support fourcc AVd1 for dvvideo.
...
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at >
2015-09-05 00:09:06 +02:00
Pedro Arthur
3059562aa1
swscale: re-enable gamma
...
+added gamma conversion to refactored code
2015-09-04 19:00:20 -03:00
Pedro Arthur
f67aff3ad7
swscale: added proper error check for ff_init_filters
2015-09-04 19:00:20 -03:00
Carl Eugen Hoyos
f7361dbcf4
lavc/mxfdec: Support more mxf files with codec_ul.
...
Fixes decoding for the sample from ticket #4820 .
2015-09-04 23:50:34 +02:00
Carl Eugen Hoyos
f253c34175
lavc/j2kenc: Remove experimental flag.
...
The encoder produces valid and - if requested - lossless files.
2015-09-04 23:48:32 +02:00
Paul B Mahol
f011e98cb1
avfilter/vf_vectorscope: change intensity to float
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-04 18:47:46 +00:00
Paul B Mahol
db592f3b03
avfilter/vf_waveform: stop abusing s->size for calculating limit
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-04 17:34:23 +00:00
Paul B Mahol
55886c67e7
avfilter/vf_waveform: change intensity to float
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-04 17:14:32 +00:00
Paul B Mahol
fda05554e3
avfilter/vf_waveform: reduce number of operations a little
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-04 17:07:08 +00:00
Paul B Mahol
5b658bcc8a
avfilter/vf_waveform: 9 and 10 bit depth support for lowpass & color filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-04 17:07:08 +00:00
Ronald S. Bultje
9ee2ddd773
vp9_parse: fix parsing of pskip and profile 2/3.
...
The fate results change because we now correctly timestamp the pskip
frames, which means the results are now identical to -vsync 0.
2015-09-04 09:59:17 -04:00
Ronald S. Bultje
10142f994a
libvpxdec: explicitly signal RGB.
2015-09-04 09:33:46 -04:00
Ronald S. Bultje
4ecb8b4191
vp9: don't erase values for {lf,ref,skip,q}_enabled if segmentation=0.
...
Instead, use segmentation.enabled before accessing each of these values.
2015-09-04 09:33:45 -04:00
Ronald S. Bultje
8b45e87f64
vp9: fix segmentation map retention across keyframe boundaries.
2015-09-04 09:33:45 -04:00
Ronald S. Bultje
7cc7d13fe3
vp9: fix RGB chroma subsampling.
2015-09-04 09:33:45 -04:00
Ronald S. Bultje
ecd9f57edc
vp9: read reserved bit in RGB header.
2015-09-04 09:33:45 -04:00
Ronald S. Bultje
48f641a18b
vp9: clip intermediates in dequant calculations.
...
This makes values consistent with libvpx.
2015-09-04 09:33:45 -04:00
Ronald S. Bultje
eaff36c973
vp9: fix segmentation map retention if segmentation is turned off.
2015-09-04 09:33:44 -04:00
Ronald S. Bultje
8d25a11dc7
vp9: use resetctx in the same way as libvpx.
2015-09-04 09:33:44 -04:00
Ronald S. Bultje
cc9d3a3e36
vp9: fix indentation.
2015-09-04 09:33:44 -04:00
Ronald S. Bultje
caf6512ac4
vp9: deal with the case where update_map=0 but we're key/intraonly.
2015-09-04 09:33:44 -04:00
Ronald S. Bultje
339550e7c8
vp9: reset segmentation information on context reset.
2015-09-04 09:33:43 -04:00
Michael Niedermayer
fb04666995
avcodec/g2meet: Also clear tile dimensions on header_fail
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 12:14:14 +02:00
Michael Niedermayer
71ec8e1ed6
avcodec/g2meet: Fix potential overflow in tile dimensions check
...
Fixes CID1322351
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 12:14:13 +02:00
Michael Niedermayer
c447ab0e74
avcodec/eatgq: Check init_get_bits8() for failure
...
Fixes CID1322315
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 12:03:44 +02:00
Michael Niedermayer
66a7bc0010
avcodec/adpcm: Check init_get_bits8() for failure
...
Fixes CID1322317
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 12:03:37 +02:00
Michael Niedermayer
cf410f8fb9
ffmpeg: Drop redundant ist check
...
stream copy always has a input stream, it cannot use complex video/audio filters with unambigous input
Fixes CID1322348
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 11:42:23 +02:00
Michael Niedermayer
e9c58033e8
doc/examples/http_multiclient: Fix occured typo
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 11:30:25 +02:00
Michael Niedermayer
325ee610ba
avcodec/libfdk-aacdec: Remove unused variable
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 11:26:14 +02:00
Michael Niedermayer
bd6610c3b3
avcodec/hevc_parser: Check init_get_bits8() for failure
...
Fixes: CID1322322
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 03:09:03 +02:00
Michael Niedermayer
194dd15558
avcodec/ira288: Check init_get_bits8() for failure
...
Fixes: CID1322321
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 02:19:06 +02:00
Michael Niedermayer
21d8c6612f
avcodec/smacker: Check init_get_bits8() for failure
...
Fixes: CID1322314
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 02:15:50 +02:00
Michael Niedermayer
6ae1a32d8a
avcodec/sonic: Check init_get_bits8() for failure
...
Fixes: CID1322310
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 02:14:10 +02:00
Michael Niedermayer
a51d4246d8
avcodec/svq1dec: Check init_get_bits8() for failure
...
Fixes: CID1322313
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 01:28:26 +02:00
Michael Niedermayer
f1593e4ca5
avcodec/tta: Check init_get_bits8() for failure
...
Fixes: CID1322319
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 01:28:25 +02:00
Michael Niedermayer
cbd3cd8eb2
avcodec/vp3: Check init_get_bits8() for failure
...
Fixes CID1322316
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 01:13:05 +02:00
Michael Niedermayer
f5a6a8336f
avfilter/af_channelmap: Reorder operations to avoid memleak
...
Fixes CID1322346
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-04 00:10:41 +02:00
Michael Niedermayer
59361d8c9d
avfilter/af_sidechaincompress: Also assert that i < 2
...
This should help static analyzers (CID1322339)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 23:13:24 +02:00
Michael Niedermayer
d5710411c7
avfilter/vf_atadenoise: Check for ff_get_video_buffer() failure
...
Fixes CID1322338
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 23:07:43 +02:00
Michael Niedermayer
c97ea011f5
avfilter/vf_histogram: Fix order of operations with flags
...
Fixes CID1322325
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 23:02:03 +02:00
Michael Niedermayer
e5aa6f7021
avcodec/gsmdec_template: avoid undefined negative left shifts
...
Fixes: unknown_unknown_338_824_cov_1045285351_sample-gsm-8000.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 22:17:24 +02:00
Michael Niedermayer
9ed53d5a8a
avformat/mov: Change the type of the r/g/b variables
...
Fixes integer overflow
Fixes: unknown_unknown_31b_795_cov_1818643045_raybauduc.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 22:17:00 +02:00
Stephan Holljes
280d140cb0
lavf/http: Remove superfluous parenthesis.
...
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com >
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 20:11:29 +02:00
Michael Niedermayer
a212a983c7
avfilter/avf_showwaves: Check max_samples
...
Fixes potential division by zero
Fixes: CID1292295
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 19:27:20 +02:00
Stephan Holljes
dd7b486e8e
lavf/http: Fix incorrectly placed parenthesis.
...
The assignment had incorrectly placed parentheses which resulted in ret
always being > 0.
Reviewed-by: wm4 <nfxjfg@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 18:55:49 +02:00
Michael Niedermayer
92b3c486b0
avfilter/af_dynaudnorm: Fix typo in assert
...
Fixes: CID1322303
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 18:55:06 +02:00
Michael Niedermayer
629fcda4da
avfilter/avf_showfreqs: Use floating point division in WFUNC_BHANN
...
Fixes: CID1322365
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 18:54:14 +02:00
Michael Niedermayer
9f6ca28e32
avformat/concatdec: Check file variable before dereferencing
...
Fixes CID1322328
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 18:53:44 +02:00
Claudio Freire
5131ba5657
AAC: MIPS: Add missing codebooks in quantize funcs
...
Add entries on the quantize function tables for the missing
codebooks (which all behave like ZERO)
2015-09-03 11:27:52 -03:00
Claudio Freire
bcb3332b1b
AAC: Increase fuzziness of fate-aac tests
...
Needed to make them pass in mips
2015-09-03 10:16:33 -03:00
Carl Eugen Hoyos
3cf0c959cd
doc: Explain how to use the fps and the fieldmatch filter together.
...
Fixes ticket #3968 .
2015-09-03 14:36:34 +02:00
Michael Niedermayer
fddcd9e570
avformat/file: Fix copy and paste error
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 12:42:40 +02:00
Ganesh Ajjanagadde
c0ae4619ec
avfilter/vf_sab: use the name 's' for the pointer to the private context
...
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-09-03 09:47:44 +00:00
Paul B Mahol
9136e65c40
avcodec/fraps: use init_get_bits8()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-03 09:47:44 +00:00
Michael Niedermayer
4cad4bd4ca
avformat/hlsenc: Fix memleak of path
...
Fixes: CID1322343
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 11:28:29 +02:00
Michael Niedermayer
e3d8504fd0
avformat/hlsenc: Initialize vtt_oc to help static analyzers
...
This is also more robust in case it ever is used
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 11:28:29 +02:00
Michael Niedermayer
879603fa3f
avformat/latmenc: Add assert to avoid coverity warning
...
Fixes CID1322323
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 11:28:29 +02:00
Paul B Mahol
8d2b4b8c82
avfilter/vf_drawgraph: add rscroll slide mode
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-03 09:12:14 +00:00
Paul B Mahol
81f7a2579b
avcodec/vorbisdec: use init_get_bits8()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-03 09:12:14 +00:00
Paul B Mahol
7820197d2c
avfilter/vf_vectorscope: constify more variables
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-03 09:12:14 +00:00
Paul B Mahol
1c88ef0c99
avfilter/vf_vectorscope: support more formats for color4 mode in common case
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-03 09:12:14 +00:00
Paul B Mahol
19dfbe9298
avfilter/vf_elbg: make it possible to output to pal8 pixel format
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-03 09:12:06 +00:00
Michael Niedermayer
bd70303ead
avformat/swfdec: Check return value of init_get_bits8()
...
Fixes: CID1322320
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 10:20:29 +02:00
Michael Niedermayer
32f53958b8
swresample/swresample: Fix integer overflow in seed calculation
...
Fixes CID1322333
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 09:32:43 +02:00
Michael Niedermayer
053e80f6ea
avformat/mov: Fix integer overflow in FFABS
...
Fixes: unknown_unknown_19e_414_cov_764838672_bellhamlam.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 09:20:57 +02:00
Michael Niedermayer
d6cd614dac
avutil/common: Add FFNABS()
...
This macro avoids the undefined corner case with the *_MIN values
Previous version Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 09:05:50 +02:00
Michael Niedermayer
d1bdaf3fb2
avformat/dump: Fix integer overflow in aspect ratio calculation
...
Fixes: unknown_unknown_19e_414_cov_764838672_bellhamlam.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 02:50:41 +02:00
Michael Niedermayer
733511fb53
avutil/common: Document FFABS() corner case
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-03 02:18:01 +02:00
Marton Balint
26a0cd1b4b
lavf: add V as a video stream specifier which is not an attached picture
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Marton Balint <cus@passwd.hu >
2015-09-02 21:35:21 +02:00
Michael Niedermayer
863522431f
avcodec/mpeg12dec: Fix integer overflow
...
Fixes: signal_sigabrt_7ffff6ac8cc9_686_cov_1897408623_microsoft_new_way_to_shove_mpeg2_in_asf.dvr_ms
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-02 21:11:07 +02:00
Michael Niedermayer
d9b56895b5
avcodec/mpegvideo: change bit_rate to 64bit
...
32bit is not sufficient for all cases
Fixes: signal_sigabrt_7ffff6ac8cc9_686_cov_1897408623_microsoft_new_way_to_shove_mpeg2_in_asf.dvr_ms
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-02 21:10:36 +02:00
Michael Niedermayer
5b6a50e150
avcodec/mpegvideo_parser: Fix integer overflow
...
Fixes: signal_sigabrt_7ffff6ac8cc9_686_cov_1897408623_microsoft_new_way_to_shove_mpeg2_in_asf.dvr_ms
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-02 20:55:09 +02:00
Michael Niedermayer
cf818be4f2
avcodec/truemotion1: Fix undefined behavior (left shift of negative value)
...
Fixes: asan_heap-oob_26f6853_862_cov_585961513_sonic3dblast_intro-partial.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-02 20:45:07 +02:00
周晓勇
95010d49a2
avcodec: loongson optimize mpeg2 dct unquantize intra and denoise dct
...
Change-Id: I2f391ae912a079fb32f0703841dca86358aac72a
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-02 16:53:32 +02:00
Vittorio Giovara
c4a0a326a1
lavfi/colormatrix: Add a bt601 alias
...
Matches what av_get_colorspace_name() and av_color_space_name() report.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-02 16:35:21 +02:00
Carl Eugen Hoyos
a4188c9cd2
ffmpeg: Improve help text for -target.
...
Fixes ticket #1057 .
2015-09-02 14:32:06 +02:00
Michael Niedermayer
933309a6ca
avcodec/mips/aaccoder_mips: disable optimizatios which break fate-aac-pns-encode
...
These should be re enabled once the issue is fixed
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-02 13:04:57 +02:00
Rostislav Pehlivanov
10d16647cc
fate: increase fuzziness for the AAC encoder prediction test
...
Fails on x86_64 using ICC 13.1.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-02 08:36:53 +01:00
Rostislav Pehlivanov
dcf72da841
fate: add fuzziness to the AAC Encode prediction test
...
Fails on ppc64 architecture under Ubuntu.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-02 07:15:42 +01:00
Rostislav Pehlivanov
72adf24310
fate: update AAC encoder tests
...
TNS had both IS and PNS switched on when it makes more sense
to have them both off.
Prediction had a redundant argument.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-02 06:39:59 +01:00
Rostislav Pehlivanov
20dc527139
aacenc: reorder coding tools
...
This commit reorders the coding tools such that they're doing what
the decoder does in reverse order. The very first thing the decoder
does is to decode M/S stereo if that's signalled, then prediction,
IS, and finally TNS and PNS in another function.
adjust_frame_information()'s application of IS and M/S was taken
out into two separate functions since prediction doesn't expect
to get the raw coefficients but rathe the coefficients at that
part of the encoding process.
The results show a much better PSNR when any combination of
Intensity Stereo, Mid/Side stereo and Prediction is used, which
is a sign of an increased encoder efficiency as well as the fact
that the decoder gets what it expects.
Otherwise, with only IS, PNS or prediction there are neither
regressions nor improvements except in the case of IS, which
now by itself (or with PNS) is less prone to artifacts. Enabling
M/S (using stereo_mode) as well will also reduce stereo artifacts
induced by IS, so in the very near future M/S may be enabled
by default.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-02 06:26:45 +01:00
LiuQi
a4055d3e5d
avformat/hlsenc: add a use_localtime option to expand the segment filename with localtime
...
test examples:
./ffmpeg -re -i ~/Movies/objectC/facebook.mp4 -v verbose -c copy -f hls -hls_segment_filename test-%s.ts -use_localtime 1 -bsf:v h264_mp4toannexb aaa.m3u8
[StevenLiu@localhost ffmpeg]$ cat aaa.m3u8;ll test-*.ts
test-1441052221.ts
test-1441052231.ts
test-1441052235.ts
test-1441052243.ts
test-1441052249.ts
-rw-r--r-- 1 StevenLiu staff 1310736 9 1 04:15 test-1441052131.ts
-rw-r--r-- 1 StevenLiu staff 495192 9 1 04:15 test-1441052141.ts
-rw-r--r-- 1 StevenLiu staff 1310736 9 1 04:17 test-1441052212.ts
-rw-r--r-- 1 StevenLiu staff 1067840 9 1 04:17 test-1441052221.ts
-rw-r--r-- 1 StevenLiu staff 235564 9 1 04:17 test-1441052231.ts
-rw-r--r-- 1 StevenLiu staff 1187220 9 1 04:17 test-1441052235.ts
-rw-r--r-- 1 StevenLiu staff 694848 9 1 04:17 test-1441052243.ts
-rw-r--r-- 1 StevenLiu staff 526588 9 1 04:17 test-1441052249.ts
[StevenLiu@localhost ffmpeg]$
./ffmpeg -re -i ~/Movies/objectC/facebook.mp4 -v verbose -c copy -f hls -hls_segment_filename test-%s.ts -use_localtime 1 -bsf:v h264_mp4toannexb aaa.m3u8
[StevenLiu@localhost ffmpeg]$ cat aaa.m3u8;ll aaa-*.ts
aaa-1441052417.ts
aaa-1441052427.ts
aaa-1441052437.ts
aaa-1441052440.ts
aaa-1441052449.ts
-rw-r--r-- 1 StevenLiu staff 1310736 9 1 04:19 aaa-1441052382.ts
-rw-r--r-- 1 StevenLiu staff 277300 9 1 04:19 aaa-1441052392.ts
-rw-r--r-- 1 StevenLiu staff 1310736 9 1 04:20 aaa-1441052417.ts
-rw-r--r-- 1 StevenLiu staff 1067840 9 1 04:20 aaa-1441052427.ts
-rw-r--r-- 1 StevenLiu staff 235564 9 1 04:20 aaa-1441052437.ts
-rw-r--r-- 1 StevenLiu staff 1187220 9 1 04:20 aaa-1441052440.ts
-rw-r--r-- 1 StevenLiu staff 338776 9 1 04:20 aaa-1441052449.ts
[StevenLiu@localhost ffmpeg]$
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-02 04:31:32 +02:00
Rainer Hochecker
62bd8deef9
avcodec/hevc_parser: fix split function of parser
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-02 02:48:43 +02:00
Michael Niedermayer
b7baebb754
avcodec/ffv1dec: Print CRCs at picture debug level
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-02 02:11:43 +02:00
Michael Niedermayer
eac161451d
avcodec/ffv1dec: Check that there is enough space for the CRC in the global header
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-02 02:10:31 +02:00
Michael Niedermayer
1376084dcb
avcodec/h264_slice: replace assert by normal error check
...
Fixes assertion failure
Fixes: c6075771557e4f3b7b74e63d2d24fb01/signal_sigabrt_7ffff6ac8cc9_133_cov_2853689970_CREDITS.FST
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-02 01:22:45 +02:00
Carl Eugen Hoyos
3eae98c1ac
lavf/dv: Do not return EIO for every error (like EOF).
...
Fixes ticket #4818 .
Reviewed-by: Ronald S. Bultje
Reviewed-by: Paul B Mahol
2015-09-02 00:59:10 +02:00
Ricardo Constantino
9dbc50b4cd
avfilter/vf_subtitles: allow setting fonts directory
...
This is mostly useful if libass was compiled with a font provider
other than fontconfig, but is still useful in that case.
Signed-off-by: Ricardo Constantino <wiiaboo@gmail.com >
2015-09-02 00:47:52 +02:00
Michael Niedermayer
642d2f9d55
avcodec/version: Minor version bump due to 5d12d7de2c
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-01 23:02:15 +02:00
Michael Niedermayer
c7c207aecd
avformat/mxg: Use memmove()
...
Fixes undefined behavior
Fixes: 1700002963a49da13542e0726b7bb758/unknown_unknown_292_658_cov_2141972066_m1.mxg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-01 22:46:23 +02:00
Petri Hintukainen
5d12d7de2c
mpegts: demux BluRay text subtitles
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-01 14:35:32 +02:00
Petri Hintukainen
757cb0f286
mpegts: fix demuxing PES private stream 2
...
PES header size is 6 bytes (00 00 01 bf XX XX), not 0.
BluRay text subtitles use private stream 2.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-01 14:35:32 +02:00
Ganesh Ajjanagadde
d79c200000
avfilter/vf_spp: use the name 's' for the pointer to the private context
...
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-09-01 12:02:56 +00:00
Andrew Stone
dc926ab518
rtmp: support the AMF_DATE tag
...
Instead of returning EINVAL, which can cause a stream to fail to load, this
allows the tag to be passed through to the flv demuxer, where it's summarily
ignored.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-01 13:35:37 +02:00
Rostislav Pehlivanov
8ffe1cb4d7
aacenc: disable bandtype modifying extensions when coder != twoloop
...
If the selected coder isn't twoloop, this commit temporarily
disables IS and PNS.
The problem is in the encode_window_bands_info() being confused
and setting invalid band_types for non-marked (normal) bands.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-01 12:07:00 +01:00
Paul B Mahol
c3cd1a7496
avfilter/vf_waveform: support envelope for all filters
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-01 08:43:34 +00:00
Paul B Mahol
97c7c39d25
avfilter/vf_waveform: simplify memory allocations
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-01 08:43:34 +00:00
Paul B Mahol
32f217edad
avfilter/vf_waveform: implement various filters
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-09-01 08:43:34 +00:00
Rostislav Pehlivanov
b86532810d
fate: adjust fuzz of AAC Encoder's TNS test
...
Have to adjust it again, this time because of --enable-small on
gcc 4.5 in Linaro.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-01 09:08:31 +01:00
Carl Eugen Hoyos
670d8ecfae
lavf: Remove probesize32 and max_analyze_duration32 on version bump.
...
Add FF_API_PROBESIZE_32 to allow removing 32bit probesize and 32bit
max_analyze_duration after the next libavformat version bump.
2015-09-01 09:19:49 +02:00
Carl Eugen Hoyos
0cb6c0ec48
lavfi/scale: Pass src_range and dst_range to libswscale.
...
Fixes ticket #4812 .
2015-09-01 09:17:26 +02:00
Rostislav Pehlivanov
555f513769
fate: update AAC tests to the new defaults
...
IS and PNS increase quality a ton so as a result the PSNR changed.
Disable the extensions and keep the tests separate such that there
will be no red herrings if one test fails.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-01 07:26:03 +01:00
Rostislav Pehlivanov
bc9927b854
aacenc: Enable Intensity Stereo by default
...
Since the changes made a few week ago (which were done more than a
month ago) the quality and stability of intensity stereo has been
notably good. There were some requests and wishes to have in on by
default and therefore it has been enabled. Should any regressions
arise changes will be made to preferably keep it operating rather
than just disabling it by default again.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-01 07:15:23 +01:00
Rostislav Pehlivanov
b7eb7cb3a1
aacenc: Enable Perceptual Noise Substitution by default
...
It has been in the current encoder in its current implementation
for quite some time now, so enable it by default. Will increase
quality at all bitrates, especially at low ones.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-01 07:13:33 +01:00
Rostislav Pehlivanov
a8ced764f7
fate: update AAC Encoder TNS test for the new changes
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-01 07:07:59 +01:00
Rostislav Pehlivanov
a0079aae00
aacenc: reorder resetting of cpe->common_window
...
Purely a cosmetic change, most of the zeroing of encoder resources
should happen at the top of the main loop.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-01 07:00:10 +01:00
Rostislav Pehlivanov
f3f6c6b928
aacenc_tns: rework coefficient quantization and filter application
...
This commit reworks the TNS implementation to a hybrid between what
the specifications say, what the decoder does and what's the best
thing to do.
The filter application function was copied from the decoder and
modified such that it applies the inverse AR filter to the
coefficients. The LPC coefficients themselves are fed into the
same quantization expression that the specifications say should
be used however further processing is not done, instead they're
converted to the form that the decoder expects them to be in
and are sent off to the compute_lpc_coeffs function exactly the
way the decoder does. This function does all conversions and will
return the exact coefficients that the decoder will generate, which
are then applied to the coefficients.
Having the exact same coefficients on both the encoder and decoder
is a must since otherwise the entire sfb's over which the filter
is applied will be attenuated.
Despite this major rework, TNS might not work fine on some audio
types at very low bitrates (e.g. sub 90kbps) as it can attenuate
some coefficients too much. Users are advised to experiment with
TNS at higher bitrates if they wish to use this tool or simply
wait for the implementation to be improved.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-01 06:44:07 +01:00
Rostislav Pehlivanov
d09f9c45c7
aacenc: allocate a larger buffer for the TNS LPC context
...
Turns out autocorrelating more than 750 coefficients at once
will cause a segfault, despite there being enough space to
hold an entire frame of samples into the buffer.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-01 06:40:12 +01:00
Rostislav Pehlivanov
0fc3a51353
lpc: add ff_lpc_calc_ref_coefs_f() function
...
This commit adds a function to get the reflection coefficients on
floating point samples. It's functionally identical to
ff_lpc_calc_ref_coefs() except it works on float samples and will
return the global prediction gain. The Welch window implementation
which is more optimized works only on int32_t samples so a slower
generic expression was used.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-01 06:34:50 +01:00
Rostislav Pehlivanov
a70ee2bdcd
lpc: remove unused ff_lpc_calc_levinson() function
...
Not needed anymore, it was only used by the AAC TNS
encoder and was replaced with a more suitable function
in the following commit.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-01 06:32:35 +01:00
Rostislav Pehlivanov
139c2f93fd
aacenctab: add tns_min_sfb[] to the encoder tables header
...
Needed for following commits. Contains the starting sfb for
every samplerate and window type.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-01 06:30:08 +01:00
Rostislav Pehlivanov
5ed5ca706f
aacenc: populate tns_max_bands
...
Needed for the following commits.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-09-01 06:20:24 +01:00
Michael Niedermayer
63fb5a6aef
avcodec/truemotion1: Check for even width
...
Fixes out of array access
Fixes: 87196d8bbc633629fc9dd851fce73e70/asan_heap-oob_26f6853_862_cov_585961513_sonic3dblast_intro-partial.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-01 05:15:04 +02:00
Michael Niedermayer
b54e03c9dc
avcodec/mpeg12dec: Set dimensions in mpeg1_decode_sequence() only in absence of errors
...
Fixes assertion failure
Fixes: 56dcafde14a8397161bb61a16c511179/signal_sigabrt_7ffff6ac8cc9_686_cov_1897408623_microsoft_new_way_to_shove_mpeg2_in_asf.dvr_ms
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-09-01 02:47:11 +02:00
Michael Niedermayer
a047ccbb9f
avcodec/movtextdec: Free ftab_temp
...
Fixes memleak
Fixes: efe937780e95574250dabe07151bdc23/unknown_unknown_351_849_cov_3187578556_shellymanne.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-31 23:44:39 +02:00
Michael Niedermayer
a1a32fdb0e
avcodec/movtextdec: Make tx3g_ptr unsigned
...
Fixes integer overflow
Fixes: efe937780e95574250dabe07151bdc23/unknown_unknown_351_849_cov_3187578556_shellymanne.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-31 23:44:39 +02:00
Peter B
baeb8f5f71
tests: Renamed pix_fmts wording in ffv1 test target name to match pix_fmt parameter.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-31 16:14:38 +02:00
Andreas Cadhalpun
2ac5b6ce8d
fate: use 'c' for setting the channel_layout
...
Without this fate-filter-join failes with
FF_API_GET_CHANNEL_LAYOUT_COMPAT disabled.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-31 13:49:46 +02:00
Donny Yang
51d4bca5a4
avcodec/pngdec: fully support the tRNS chunk
...
Signed-off-by: Donny Yang <work@kota.moe >
2015-08-31 09:52:46 +00:00
Hendrik Leppkes
d5911e6963
Merge commit 'c457bdebe7af643b380aa0f6add3cb4335d218dc'
...
* commit 'c457bdebe7af643b380aa0f6add3cb4335d218dc':
checkasm: Fix floating point arguments on 64-bit Windows
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-31 10:08:18 +02:00
Hendrik Leppkes
ea1061e147
Merge commit 'b1abd2aaf91be249f24cb74db9c205d9e4ca9da6'
...
* commit 'b1abd2aaf91be249f24cb74db9c205d9e4ca9da6':
vf_scale: Add an option to pass the scaler params
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-31 10:07:34 +02:00
Hendrik Leppkes
80a12be10f
Merge commit 'c23999be134bde0a0554261a9043be7dbc01de0c'
...
* commit 'c23999be134bde0a0554261a9043be7dbc01de0c':
avconv_opt: Add an option that lists all supported hwaccels
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-31 10:01:58 +02:00
Hendrik Leppkes
ad79fa471b
Merge commit '629d4c5b4deee08bf3a4f3ab45fd4f8b76d7aff3'
...
* commit '629d4c5b4deee08bf3a4f3ab45fd4f8b76d7aff3':
avconv_opt: Add missing comma
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-31 10:00:07 +02:00
Michael Niedermayer
1acd6311a1
swscale/utils: If cascaded contexts are used forward sws_setColorspaceDetails() to the first context
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-31 02:00:55 +02:00
Michael Niedermayer
8e05f9217a
swscale/utils: Split scaling if possible and yuv->yuv with different matrixes is requested
...
This uses a RGB intermediate, a more optimal solution would be to perform the rematrixing
directly in subsampled YUV, this is quite a bit more complicated though
Fixes Ticket4805
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-31 02:00:19 +02:00
Michael Niedermayer
58a0b7f114
avfilter/vf_scale: If no output color matrix is specified, use the input
...
This should only affect yuv->yuv, and not change behavior
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-31 01:33:05 +02:00
Michael Niedermayer
5a00c30041
avfilter/vf_scale: Do not skip scale if the color matrix mismatches
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-31 01:33:05 +02:00
Carl Eugen Hoyos
75d9006475
avfilter/vf_scale: Do not skip scale if range mismatches
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-31 01:33:05 +02:00
Andreas Cadhalpun
c64060d56a
fate: add -fflags +bitexact to the relevant targets
...
This fixes fate with FF_API_LAVF_BITEXACT disabled.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-30 23:31:10 +02:00
Andreas Cadhalpun
c34363acd2
mux: warn if the encoders bitexact flag is set, but not the muxers
...
Based-on-patch-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-30 23:30:09 +02:00
Andreas Cadhalpun
e6c20e214e
avfilter: add missing FF_API_AVFILTERBUFFER guards
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-30 23:24:22 +02:00
Ganesh Ajjanagadde
0169c4dc81
avfilter/vf_separatefields: use the name 's' for the pointer to the private context
...
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-08-30 15:58:12 +00:00
Sven Dueking
67e87f8050
avcodec/qsv : Added look ahead rate control mode
...
Reviewed-by: Ivan Uskov <ivan.uskov@nablet.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-30 16:00:05 +02:00
Paul B Mahol
dead1964ea
avfilter/vf_vectorscope: make color mode more useful
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-30 13:37:21 +00:00
Michael Niedermayer
fb42e77516
swresample/swresample-test: Make layouts static const
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-30 13:10:11 +02:00
Michael Niedermayer
ab800add7b
avdevice/libdc1394: Make dc1394_frame_format and dc1394_frame_rate, static
...
These are not used outside nor are in installed headers
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-30 13:10:11 +02:00
Michael Niedermayer
845fb3d4a5
avcodec/options: Make dummy_v?_encoder static
...
It does not need to be non static
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-30 12:02:07 +02:00
Paul B Mahol
a902bebdab
doc/filters: mention all short names for vectorscope options
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-30 08:35:02 +00:00
Paul B Mahol
7516aa9a4a
avfilter/vf_vectorscope: implement envelope support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-30 08:34:05 +00:00
Michael Niedermayer
4bd99f715d
avcodec/snowenc: Support setting the iterative dia size separately
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-30 04:23:30 +02:00
Rostislav Pehlivanov
21bfeec27f
aacenc_tns: do not limit the filter size
...
This was copied from the decoder, but is unneeded for the encoder.
tns_max_bands is unused and set to zero which zeroed out start, end
and size and thus no filter was actually applied.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 21:59:38 +01:00
Rostislav Pehlivanov
141d80ded7
lpc: rename ff_lpc_calc_levinsion to ff_lpc_calc_levinson
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 19:29:18 +01:00
Rostislav Pehlivanov
e924967fd5
aacenc_tns: fix out-of-bounds array access
...
Since the coefficients are stepped up to order + 1 it was possible
that it went over TNS_MAX_ORDER. Also just return in case the only
coefficient is less than the threshold.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 19:21:35 +01:00
Rostislav Pehlivanov
902ac9ca74
aacenc_tns: actually apply TNS filter to the coefficients
...
The encoder-side filter isn't that important. The PSNR
shouldn't change so the FATE test should still be fine.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 19:18:18 +01:00
Rostislav Pehlivanov
49854c56c2
aacenc: initialize LPC context with MAX_LPC_ORDER
...
The order should never go above TNS_MAX_ORDER (and thus cause
the context to be reinitialized) but this is just in case.
Also fix a comparison, since the coefficients are zero-indexed.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 19:15:52 +01:00
Rostislav Pehlivanov
0818705bf3
aacenc_tns: fix triggering an assertion with assert-level=2
...
It also made no sense to actually make the filter span the entire
window including the first band of the next window.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 19:01:59 +01:00
Ganesh Ajjanagadde
47b41feb72
avfilter/af_apad: use the name 's' for the pointer to the private context
...
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-08-29 16:38:38 +00:00
Paul B Mahol
16229fae9c
avfilter/vf_vectorscope: add yet another mode
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-29 14:05:03 +00:00
Clément Bœsch
b48d8fa3ac
avfilter: add allrgb
...
Signed-off-by: Nicolas George <george@nsup.org >
Signed-off-by: Clément Bœsch <u@pkh.me >
2015-08-29 14:57:52 +02:00
Rostislav Pehlivanov
8323d9b8af
fate: adjust AAC encoder TNS test fuzziness
...
Tests fails on some ARM builds but it's close enough so it's okay.
NEON, half-precision floats, rounding errors, who knows.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 09:26:05 +01:00
Rostislav Pehlivanov
4ff897a536
fate: add a test for encoding AAC-Main prediction
...
This commit introduces a test for AAC-Main prediction
which was just reworked in this series of commits.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 07:00:54 +01:00
Rostislav Pehlivanov
fe12ba6f30
fate: reenable TNS test
...
Hopefully without errors like last time, but I'm prepared.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 07:00:17 +01:00
Rostislav Pehlivanov
f04d86c16a
aacenc: remove TNS from the todo list
...
Pulses are already on the way so expect to see the list
gone in the close future.
TNS is already of sufficiently high quality to be enabled
by default (but isn't yet, so you too can help by testing!).
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 06:57:08 +01:00
Rostislav Pehlivanov
f20b67173c
aacenc_tns: rework the way coefficients are calculated
...
This commit abandons the way the specifications state to
quantize the coefficients, makes use of the new LPC float
functions and is much better.
The original way of converting non-normalized float samples
to int32_t which out LPC system expects was wrong and it was
wrong to assume the coefficients that are generated are also
valid. It was essentially a full garbage-in, garbage-out
system and it definitely shows when looking at spectrals
and listening. The high frequencies were very overattenuated.
The new LPC function performs the analysis directly.
The specifications state to quantize the coefficients into
four bit index values using an asin() function which of course
had to have ugly ternary operators because the function turns
negative if the coefficients are negative which when encoding
causes invalid bitstream to get generated.
This deviates from this by using the direct TNS tables, which
are fairly small since you only have 4 bits at most for index
values. The LPC values are directly quantized against the tables
and are then used to perform filtering after the requantization,
which simply fetches the array values.
The end result is that TNS works much better now and doesn't
attenuate anything but the actual signal, e.g. TNS removes
quantization errors and does it's job correctly now.
It might be enabled by default soon since it doesn't hurt and
helps reduce nastyness at low bitrates.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 06:47:31 +01:00
Rostislav Pehlivanov
1cd5daee20
aac: remove now-unused redundant array
...
This commit removes the array which was made redundant with
the last commit. The current prediction system gets the
quantization error directly (and without the single-frame delay)
in the search_for_pred function.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 06:44:20 +01:00
Rostislav Pehlivanov
44ddee945a
aacenc_pred: rework the way prediction is done
...
This commit completely alters the algorithm of prediction.
The original commit which introduced prediction was completely
incorrect to even remotely care about what the actual coefficients
contain or whether any options were enabled. Not my actual fault.
This commit treats prediction the way the decoder does and expects
to do: like lossy encryption. Everything related to prediction now
happens at the very end but just before quantization and encoding
of coefficients. On the decoder side, prediction happens before
anything has had a chance to even access the coefficients.
Also the original implementation had problems because it actually
touched the band_type of special bands which already had their
scalefactor indices marked and it's a wonder the asserion wasn't
triggered when transmitting those.
Overall, this now drastically increases audio quality and you should
think about enabling it if you don't plan on playing anything encoded
on really old low power ultra-embedded devices since they might not
support decoding of prediction or AAC-Main. Though the specifications
were written ages ago and as times change so do the FLOPS.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 06:34:08 +01:00
Rostislav Pehlivanov
949a4892fa
aacenc: change FF_PROFILE_UNKNOWN to AAC-Main if prediction is enabled
...
This was missed when the original commits were done. FF_PROFILE_UNKNOWN
is what's in avctx->profile when no audio profile is specified.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 06:28:21 +01:00
Rostislav Pehlivanov
20962b567b
lpc: create a simplified Levinson-Durbin LPC handling float samples
...
This commit simply duplicates the functionality of ff_lpc_calc_coefs()
for the case of a Levinson-Durbin LPC with the only difference being
that floating point samples are accepted and the resulting coefficients
are raw and unquantized.
The motivation behind doing this is the fact that the AAC encoder
requires LPC in TNS and LTP and converting non-normalized floating
point coefficients to int32_t using SWR and again back for the LPC
coefficients was very impractical.
The current LPC interfaces were designed for int32_t in mind possibly
because FLAC and ALAC use this type for most internal operations.
The mathematics in case of floats remains of course identical.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 06:14:13 +01:00
Rostislav Pehlivanov
f55cc57911
aac: move the TNS tables from aacdectab to the shared aactab
...
This commit simply moves the TNS tables to a more appropriate
aactab.h since then they can be accessed by both the decoder
and encoder.
The encoder _shouldn't_ normally need the tables since the
specs describe a specific quantization process, but the exact
reason for this can be seen in the TNS commit following.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-29 06:07:12 +01:00
Philip Langdale
91f1115a0e
avcodec/vc1dec: Re-order init to avoid initting hwaccel too early
...
At least for vdpau, the hwaccel init code tries to check the video
profile and ensure that there is a matching vdpau profile available.
If it can't find a match, it will fail to initialise.
In the case of wmv3/vc1, I observed initialisation to fail all the
time. It turns out that this is due to the hwaccel being initialised
very early in the codec init, before the profile has been extracted
and set.
Conceptually, it's a simple fix to reorder the init code, but it gets
messy really fast because ff_get_format(), which is what implicitly
trigger hwaccel init, is called multiple times through various shared
init calls from h263, etc. It's incredibly hard to prove to my own
satisfaction that it's safe to move the vc1 specific init code
ahead of this generic code, but all the vc1 fate tests pass, and I've
visually inspected a couple of samples and things seem correct.
Signed-off-by: Philip Langdale <philipl@overt.org >
2015-08-28 19:11:55 -07:00
Michael Niedermayer
628a73f8f3
ffmpeg: force 128k default audio bitrate if nothing is specified and there is no specific default
...
This prevents breaking existing command lines in case the "ab" default is removed from libavcodec
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-28 23:07:12 +02:00
Paul B Mahol
777df1ff74
avfilter/vf_dejudder: use the name 's' for the pointer to the private context
...
This is shorter and consistent across filters.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-28 19:05:19 +00:00
Ronald S. Bultje
7e12a54251
ffserver: use -b instead of -ab for setting audio bitrate.
2015-08-28 14:59:58 -04:00
Ronald S. Bultje
2fb593dcb9
Put remaining pieces of CODEC_FLAG_EMU_EDGE under FF_API_EMU_EDGE.
...
The amv one probably looks suspicious, but since it's an intra-only
codec, I couldn't possibly imagine what it would use the edge for,
and the vsynth fate result doesn't change, so it's probably OK.
2015-08-28 14:40:59 -04:00
Philip Langdale
1e50f953fa
Changelog: Add VDPAU HEVC to the list
...
Signed-off-by: Philip Langdale <philipl@overt.org >
2015-08-28 08:16:39 -07:00
Paul B Mahol
9f2fa95bd8
avfilter/vf_histogram: 9 and 10 bit depth support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-28 14:15:17 +00:00
Harshit Mittal
53bf32fa42
doc/examples/filtering_video: better demo ffmpeg filters; demos chaining the filters
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-28 12:53:35 +02:00
Carl Eugen Hoyos
24e0b14c4f
Changelog: Clarify that the new asf demuxer is optional.
2015-08-28 11:08:28 +02:00
Henrik Gramner
c457bdebe7
checkasm: Fix floating point arguments on 64-bit Windows
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-28 09:54:54 +02:00
Thilo Borgmann
2392da164a
Changelog: Mention the change of the default webm codecs.
...
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at >
2015-08-28 06:05:41 +02:00
Carl Eugen Hoyos
b009d5b1f7
configure: Do not let the webm muxer suggest external libraries.
...
This can fail as seen on fate and the usefulness of the suggestion is limited.
2015-08-28 06:03:58 +02:00
Donny Yang
51ca703222
apng: Support inter-frame compression
...
The current algorithm is just "try all the combinations, and pick the best".
It's not very fast either, probably due to a lot of copying, but will do for
an initial implementation.
Signed-off-by: Donny Yang <work@kota.moe >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-28 04:25:15 +02:00
Michael Niedermayer
3322f0d415
avcodec/dnxhddata: Fix inconsistent table entry
...
Fixes segfault
Fixes Ticket4809
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-28 04:07:42 +02:00
rogerdpack
832b4a4a43
configure: Print out enabled programs
...
Better message that ffplay is not going to be built by printing out what
will be built.
Based on a patch by Moritz Barsnick.
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
Signed-off-by: Timothy Gu <timothygu99@gmail.com >
2015-08-27 16:26:54 -07:00
Michael Niedermayer
e2b19a533d
avformat/segment: atomically update list if possible
...
Fixes Ticket4802
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-28 00:09:56 +02:00
Zhang Rui
92d378067e
ffplay: remove unused include libavutil/colorspace.h
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-28 00:09:42 +02:00
Ganesh Ajjanagadde
9ba511d5d3
avfilter/af_amerge: use the name 's' for the pointer to the private context
...
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-08-27 21:01:01 +00:00
Paul B Mahol
15f4b3db58
avfilter: add framerate video filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-27 20:00:36 +00:00
Stefano Sabatini
57cd2f7777
lavf/mpegenc: provide better feedback in case of invalid media type
2015-08-27 18:07:43 +02:00
lummax
0c800b2761
avcodec: Assert on codec->encode2 in encode_audio2
...
Assert on `avctx->codec->encode2` to avoid a SEGFAULT on the subsequent
function call.
avcodec_encode_video2() uses a similar assertion.
Calling the wrong function on a stream is a serious inconsistency
which could at other places be potentially dangerous and exploitable,
it is thus safer to stop execution and not continue with such
inconsistency after returning an error.
Commit-message-extended-by commiter
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-27 17:26:24 +02:00
Timo Rothenpieler
1dd854e10f
vaapi: Add hevc hwaccel support
...
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org >
2015-08-27 17:05:44 +02:00
Ganesh Ajjanagadde
bfe525e632
configure: warn if GCC 4.2 is being used
...
The wiki, Ticket1464, and Ticket3970 warn about the usage of GCC 4.2.
This fixes Ticket3970.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-08-27 16:56:34 +02:00
Carl Eugen Hoyos
0382c546cc
lavc: Describe eia_608 as text subtitles.
2015-08-27 16:42:39 +02:00
Michael Niedermayer
6701c92fa4
avcodec/libopusenc: Fix infinite loop on flushing after 0 input
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-27 12:44:31 +02:00
Ganesh Ajjanagadde
f174bfea86
configure: remove unused apply() function
...
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-27 11:47:52 +02:00
Hendrik Leppkes
f5258a7d16
Merge commit 'e176639bcbf4b580edb462a6b0650e53cd5e3c04'
...
* commit 'e176639bcbf4b580edb462a6b0650e53cd5e3c04':
webm: Explicitly select libvpx, libopus and libvorbis encoders
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-27 09:53:07 +02:00
Hendrik Leppkes
ebff705c2c
Merge commit '413d4e54a9bffe2d0afdc6d8a80f516e5df6a421'
...
* commit '413d4e54a9bffe2d0afdc6d8a80f516e5df6a421':
nvenc: Properly free the fifos
Not merged, ffmpeg's nvenc doesn't use these fifos.
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-27 09:50:53 +02:00
Hendrik Leppkes
540f280098
Merge commit '2157df425bd909854fd4afcec4aa3311d8a3b31b'
...
* commit '2157df425bd909854fd4afcec4aa3311d8a3b31b':
hlsenc: Support outputting specific versions
Not merged, the version is auto-selected in ffmpeg based on enabled features.
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-27 09:49:21 +02:00
Hendrik Leppkes
427598a2f4
Merge commit 'd68705c9756e6558c8e28d90b4c364f25ba72083'
...
* commit 'd68705c9756e6558c8e28d90b4c364f25ba72083':
dnxhddata: Add tables for missing DNx100 profiles
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-27 09:40:06 +02:00
Hendrik Leppkes
f30132f9c4
Merge commit 'a4615572b576d3ef7ee2f11529d935e61bf4ebb8'
...
* commit 'a4615572b576d3ef7ee2f11529d935e61bf4ebb8':
dnxhddata: Merge a few duplicated RUN tables
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-27 09:31:52 +02:00
Hendrik Leppkes
f19a283867
Merge commit 'efbfb1ad1112cea79bef51fd9f30c0c94735abfc'
...
* commit 'efbfb1ad1112cea79bef51fd9f30c0c94735abfc':
dnxhddata: Group together RUN-related tables
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-27 09:29:54 +02:00
Hendrik Leppkes
305f461754
Merge commit '403ea4ac7289ac39229452b6b5e2f8ebcc00f2a1'
...
* commit '403ea4ac7289ac39229452b6b5e2f8ebcc00f2a1':
dnxhddata: Merge a few duplicated DC tables
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-27 09:27:02 +02:00
Hendrik Leppkes
3b0af76c1b
Merge commit '5e129ed655bff5b6d90355c0b713d7aaba3898ec'
...
* commit '5e129ed655bff5b6d90355c0b713d7aaba3898ec':
dnxhddata: Group together DC-related tables
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-27 09:26:14 +02:00
Hendrik Leppkes
3f491224fe
Merge commit 'd3ae4c65942d67a294fd56eabbbdcce6756fab5f'
...
* commit 'd3ae4c65942d67a294fd56eabbbdcce6756fab5f':
dnxhddata: List the reused tables in a comment
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-27 09:19:41 +02:00
Hendrik Leppkes
bd074bde02
Merge commit 'fdd021884d5c06fb9ad65cb0040bb5717a7b084b'
...
* commit 'fdd021884d5c06fb9ad65cb0040bb5717a7b084b':
dnxhddata: Keep a single CID in the table names
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-27 09:17:37 +02:00
Michael Niedermayer
81a8701eb5
avformat/oggenc: Check segments_count for headers too
...
Fixes infinite loop and segfault in ogg_buffer_data()
Fixes Ticket4806
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-27 04:28:21 +02:00
Timothy Gu
da0e76955a
ffmpeg_opt: Add -hwaccels option that lists all supported hwaccels
2015-08-26 18:46:20 -07:00
Carl Eugen Hoyos
33908f0837
lavf/mov: Support unusual alac files without frma and alac atoms.
...
Fixes ticket #4747 .
2015-08-27 03:29:29 +02:00
Carl Eugen Hoyos
7f9656f10d
lavc/dnxhdenc: Fix ibias default.
...
Fixes a regression since a8ab64d2 reported by Rens Dijkshoorn, rens offlinemedia nl.
2015-08-27 02:59:43 +02:00
Paul B Mahol
319440e54f
avfilter: add hstack & vstack filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-26 11:16:51 +00:00
Paul B Mahol
0190c372ef
avfilter/framesync: allocate FFFrameSyncIn internally
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-26 11:12:23 +00:00
Paul B Mahol
a16251a6d0
avfilter/vf_histogram: fix bug in checking pixel format flags
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-26 11:11:26 +00:00
Paul B Mahol
3fbc9deb95
avfilter/vf_vectorscope: fix bug in checking pixel format flags
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-26 11:11:26 +00:00
Luca Barbato
b1abd2aaf9
vf_scale: Add an option to pass the scaler params
...
Reported-By: zehan@magicpony.technology
2015-08-26 12:13:23 +02:00
Ganesh Ajjanagadde
6455e4fb5b
configure: do not fork off grep subprocess while testing for whitespace
...
grep is not necessary for the functionality.
This avoids an unnecessary fork.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-26 11:53:15 +02:00
Paul B Mahol
47df871645
avfilter/af_aphaser: use the name 's' for the pointer to the private context
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-26 09:49:02 +00:00
Timothy Gu
c23999be13
avconv_opt: Add an option that lists all supported hwaccels
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-26 05:18:43 +02:00
Timothy Gu
629d4c5b4d
avconv_opt: Add missing comma
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-26 05:03:14 +02:00
Paul B Mahol
e030d3c61f
avfilter/vf_blend: use the name 's' for the pointer to the private context
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-25 18:16:55 +00:00
James Almer
4c39892b67
avcodec/vdpau: fix compilation of mpeg1/mpeg4/vc1 decoders when h264 is disabled
...
Tested-by: wm4 <nfxjfg@googlemail.com >
Tested-by: Philip Langdale <philipl@overt.org >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-08-25 23:58:54 -03:00
Michael Niedermayer
dda6925357
avformat/segment: Do not free the filename twice
...
Bug introduced in 83a508cda5
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-26 03:50:52 +02:00
Timothy Gu
68a9c8ac77
swscale: Silence an unused variable warning
...
Also remove a pair of extraneous ifdeffery.
2015-08-25 17:40:06 -07:00
Timothy Gu
b144008c1b
ffmpeg_opt: Add missing comma
2015-08-25 16:49:51 -07:00
Timothy Gu
0c6a92a447
matroskaenc: Fix indentation
...
Found-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-25 16:03:49 -07:00
Stephan Holljes
4f860848ab
lavf/http: Fix parsing http request data to not read over '\0'.
...
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com >
2015-08-25 19:51:13 +02:00
wm4
94a4be85a1
configure: aac encoder requires lpc
...
Fixes compilation with --disable-encoders --enable-encoder=aac
2015-08-25 19:48:11 +02:00
Luca Barbato
e176639bcb
webm: Explicitly select libvpx, libopus and libvorbis encoders
...
And update the preference for the newer codecs now that the libraries
seem stable and widespread enough.
Bug-Id: 695
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-25 19:47:43 +02:00
Luca Barbato
413d4e54a9
nvenc: Properly free the fifos
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-25 19:47:43 +02:00
Luca Barbato
2157df425b
hlsenc: Support outputting specific versions
...
Right now only version 2 and version 3 are supported.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-25 19:43:58 +02:00
Henrik Gramner
33a58d7bf4
checkasm: Fix floating point arguments on 64-bit Windows
2015-08-25 19:34:46 +02:00
Vesselin Bontchev
4cd1d2314b
avformat/aa: use correct format specifier in sscanf
...
This demuxer was broken on a large number of platforms due to usage of wrong
format specifier in sscanf. This patch fixes the problem, and also adds some
debug logging to reduce future debugging pain.
2015-08-25 12:44:20 +00:00
Carl Eugen Hoyos
83a508cda5
lavf/segment: Fix memleak.
...
Reviewed-by: Stefano Sabatini
Reviewed-by: Ganesh Ajjanagadde
2015-08-25 13:36:24 +02:00
Michael Niedermayer
d65b9114f3
avformat/file: Check for lstat() instead of dirent.h
...
Fixes build on mingw
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-25 13:08:44 +02:00
Paul B Mahol
1b1c4030ea
fate: add tests for vectorscope filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-25 10:13:03 +00:00
Carl Eugen Hoyos
91619d195b
lavf/dnxhd: Autodetect more valid files.
2015-08-25 12:07:38 +02:00
Mariusz Szczepańczyk
1f4c62e84e
lavf/file: check for dirent.h support
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-25 02:06:06 +02:00
Lukasz Marek
d39a9b01e2
lavf/file: implement directory listing callbacks
...
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-25 02:04:34 +02:00
Ganesh Ajjanagadde
060102389e
configure: do not fork off grep subprocess in probe_cc
...
grep is not required for the functionality in this instance.
This avoids an unnecessary fork, and also avoids a duplicated dumpversion call.
Furthermore, it also corrects behavior when no minor version number is present, see e.g
https://github.com/joyent/node/pull/25671 .
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-25 00:31:25 +02:00
Michael Niedermayer
fa9af304f0
avcodec/mjpegdec: Remove message asking for a non mod 16 AMV sample
...
Ticket4770 contains such a sample and it decodes fine
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-24 19:50:01 +02:00
Paul B Mahol
2f731d46f0
avfilter/vf_vectorscope: add options with shorter name
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-24 14:21:26 +00:00
Paul B Mahol
c34c050303
avfilter/vf_vectorscope: make intensity user configurable
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-24 14:19:30 +00:00
Vittorio Giovara
d68705c975
dnxhddata: Add tables for missing DNx100 profiles
...
1440x1080@8 progressive (1259) and interlaced (1260).
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-08-24 13:20:10 +02:00
Vittorio Giovara
a4615572b5
dnxhddata: Merge a few duplicated RUN tables
2015-08-24 13:20:04 +02:00
Vittorio Giovara
efbfb1ad11
dnxhddata: Group together RUN-related tables
...
This helps in finding duplicates.
2015-08-24 13:19:58 +02:00
Vittorio Giovara
403ea4ac72
dnxhddata: Merge a few duplicated DC tables
2015-08-24 13:19:43 +02:00
Vittorio Giovara
5e129ed655
dnxhddata: Group together DC-related tables
...
This helps in finding duplicates.
2015-08-24 13:19:36 +02:00
Vittorio Giovara
d3ae4c6594
dnxhddata: List the reused tables in a comment
2015-08-24 13:19:28 +02:00
Vittorio Giovara
fdd021884d
dnxhddata: Keep a single CID in the table names
...
Use a comment to list the reused tables, since it's more flexible than a
table name to keep information like this. The list will expand in later
commits.
2015-08-24 13:19:06 +02:00
Michael Niedermayer
ee155c18a2
avformat/hevc: Check num_long_term_ref_pics_sps to avoid potentially long loops
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-24 13:04:38 +02:00
Arthur Grant
781efd0741
avformat/hevc: Fix parsing errors
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-24 12:44:34 +02:00
Hendrik Leppkes
fd2977d85f
Merge commit 'e23f84d9652474353d8bbc42787a56ec1991908f'
...
* commit 'e23f84d9652474353d8bbc42787a56ec1991908f':
channel_layout: Add a 16channel default layout
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-24 10:40:24 +02:00
Hendrik Leppkes
d2d6ca6f98
Merge commit 'd5eab59a5373b22aa52d6053a8e853e95a6e131e'
...
* commit 'd5eab59a5373b22aa52d6053a8e853e95a6e131e':
aac: Make sure to set err on the failure path
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-24 10:39:08 +02:00
Hendrik Leppkes
87ee98c898
Merge commit '167ea1fbf15ecefa30729f9b8d091ed431bf43bd'
...
* commit '167ea1fbf15ecefa30729f9b8d091ed431bf43bd':
xavs: Do not try to set the bitrate tolerance without a bitrate
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-24 10:37:50 +02:00
Hendrik Leppkes
0f72dfeb5f
Merge commit '61d8fa2a1ab76f0f3ac1442faa104ace4b29decc'
...
* commit '61d8fa2a1ab76f0f3ac1442faa104ace4b29decc':
h264: Fix faulty call to avpriv_request_sample
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-24 10:36:27 +02:00
Hendrik Leppkes
a4c13f95fb
Merge commit 'f9ab4fe1f7c1e9d410ca5ee2c9ff8d2892aad068'
...
* commit 'f9ab4fe1f7c1e9d410ca5ee2c9ff8d2892aad068':
h264: Discard currently unsupported registered sei
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-24 10:36:07 +02:00
Hendrik Leppkes
59cae1916e
Merge commit '47b447aaff1bc30ba986ca757346a2c5c95b786a'
...
* commit '47b447aaff1bc30ba986ca757346a2c5c95b786a':
imgutils: Fix a typo in avcodec_get_pix_fmt_loss
Not merged, this code was refactored and moved to avutil.
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-24 10:34:38 +02:00
Hendrik Leppkes
0cbae3763d
Merge commit 'd8ebb6157d12183ed3fc987cd2ba18b404758828'
...
* commit 'd8ebb6157d12183ed3fc987cd2ba18b404758828':
hevcdsp: fix a function name
Not merged, ffmpeg has no function of this name anymore.
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-24 10:32:34 +02:00
Hendrik Leppkes
001ea567ff
Merge commit 'a1926a29fb4325afa46842883f197c74d4535c36'
...
* commit 'a1926a29fb4325afa46842883f197c74d4535c36':
hevc: avoid invalid shifts of negative values
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-24 10:29:26 +02:00
Hendrik Leppkes
fea156367d
Merge commit '515b69f8f8e9a24cfaee95d8c1f63f265d8582fe'
...
* commit '515b69f8f8e9a24cfaee95d8c1f63f265d8582fe':
checkasm: Explicitly declare function prototypes
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-24 10:27:39 +02:00
Hendrik Leppkes
38b42250dc
Merge commit 'e13da244f41610ee073b2f72bcf62b60fa402bb5'
...
* commit 'e13da244f41610ee073b2f72bcf62b60fa402bb5':
checkasm: x86: properly save rdx/edx in checked_call()
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-24 10:26:29 +02:00
Hendrik Leppkes
11014dd3d4
Merge commit 'faa3f17a76333b672ce4a40cf80f678ab68bdbae'
...
* commit 'faa3f17a76333b672ce4a40cf80f678ab68bdbae':
fate: test only demuxing in asf-repldata
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-24 10:25:41 +02:00
Paul B Mahol
c864de3c8f
fate: add tests for waveform filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-24 07:13:06 +00:00
Ludmila Glinskih
4a9bc12fe7
fate: add api-band-test
...
Works only for flv, h263 and huffyuv decoders.
Makes only one pass through the file (this should be changed to two passes)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-24 03:54:55 +02:00
Andreas Cadhalpun
1bf76cd2db
rtpenc_chain: also copy AVFMT_FLAG_BITEXACT to new AVFormatContext
...
Otherwise it is impossible to make '-movflags +rtphint' bitexact after
FF_API_LAVF_BITEXACT has been disabled.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-23 23:35:38 +02:00
Andreas Cadhalpun
01594ebb07
options_table: fix compatibility with MSVC
...
Including libavutil/internal.h breaks compilation of doc/print_options.c
with MSVC due to linking avpriv_strtod/avpriv_snprintf.
This reverts part of commit 095347f .
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-23 23:35:14 +02:00
Andreas Cadhalpun
03e71cccba
avcodec: remove FF_API_LOWRES around max_lowres
...
Reviewed-by: wm4 <nfxjfg@googlemail.com >
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-23 23:34:02 +02:00
Ganesh Ajjanagadde
24e6729a04
swresample/dither: use integer arithmetic
...
This fixes a -Wabsolute-value reported by clang 3.5+ complaining about misuse of fabs() for integer absolute value.
An additional benefit is the removal of floating point calculations.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-23 23:19:31 +02:00
Luca Barbato
e23f84d965
channel_layout: Add a 16channel default layout
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-23 21:44:38 +02:00
Luca Barbato
d5eab59a53
aac: Make sure to set err on the failure path
...
Bug-Id: CID 1308153
2015-08-23 21:44:38 +02:00
Luca Barbato
167ea1fbf1
xavs: Do not try to set the bitrate tolerance without a bitrate
...
Avoid a division by zero.
Bug-Id: CID 1257655
2015-08-23 21:44:38 +02:00
Ganesh Ajjanagadde
9aaac04107
avdevice/lavfi: fix self assignment warning
...
FAIL(ret) expands to statements including a silly ret=ret.
This triggers a -Wself-assign on confirmed clang 3.6, and so we fix it.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-23 20:00:03 +02:00
Paul B Mahol
6be5b05fb1
avfilter/vf_histogram: levels: support more input pixel formats
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-23 10:13:52 +00:00
Michael Niedermayer
b4d68e7cdb
avformat: Remove use of AVFrac and AVStream->pts
...
Move field to internal part of AVStream and struct to internal.h
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-23 04:16:02 +02:00
Ganesh Ajjanagadde
6638e4a950
avcodec/x86/mpegaudiodsp: correct asm guards
...
Fixes -Wunused-function warnings when compiling with --disable-yasm on x86.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-23 02:39:21 +02:00
Rostislav Pehlivanov
4f396a6f30
fate: temporarily disable AAC TNS test
...
Fixing it will take a bit longer, so just suspend the test.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-23 01:04:06 +01:00
Rostislav Pehlivanov
f2ba60d4e9
aacenc_tns: temporarily disable
...
Due to segfaults on some platforms, fix will take a bit longer.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-22 23:49:59 +01:00
Ganesh Ajjanagadde
eb3cfa7dd3
swscale/alphablend: fix pointer cast
...
Commit 7c72a4bbd3 was slightly wrong
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
2015-08-22 20:11:48 +00:00
Paul B Mahol
14f97bb2bc
avfilter: add waveform monitor filter
2015-08-22 19:48:42 +00:00
Paul B Mahol
e95193f5ea
avfilter/vf_vectorscope: add more pixel formats
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-22 18:04:12 +00:00
Andreas Cadhalpun
095347ffe4
disable deprecation warnings in deprecated code
...
Reviewed-by: wm4 <nfxjfg@googlemail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-22 19:16:14 +02:00
Andreas Cadhalpun
805f38b4d6
fate: replace deprecated request_channels with request_channel_layout
...
This fixes fate with FF_API_REQUEST_CHANNELS disabled.
Reviewed-by: wm4 <nfxjfg@googlemail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-22 19:16:13 +02:00
Andreas Cadhalpun
9acf5341d6
openal-dec: replace av_destruct_packet with av_free_packet
...
Reviewed-by: wm4 <nfxjfg@googlemail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-22 19:16:13 +02:00
Andreas Cadhalpun
c363843a53
add missing FF_API_DESTRUCT_PACKET guards
...
Reviewed-by: wm4 <nfxjfg@googlemail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-22 19:16:13 +02:00
Timothy Gu
5f1c37aefb
avcodec: Fix make checkheaders
2015-08-22 10:14:17 -07:00
Timothy Gu
c5d9e9b354
doxygen: Remove lavu_internal group
...
There is no use in an internal group for a public API documentation.
2015-08-22 10:07:05 -07:00
Timothy Gu
5dee7a32d7
git-howto: Various copy edits
2015-08-22 09:16:20 -07:00
Timothy Gu
f0af25ae11
ffv1: Add missing ff_ prefixes
2015-08-22 08:36:20 -07:00
Timothy Gu
ee4cc80653
vp9dsp: Add missing ff_ prefixes
2015-08-22 08:36:20 -07:00
Timothy Gu
e10ef3289d
aacsbr_fixed: Make fixed_{exp,log}_table static const
2015-08-22 08:36:20 -07:00
Timothy Gu
1597dba86a
aacdec_fixed: Make exp2tab static const
2015-08-22 08:36:20 -07:00
Timothy Gu
8d9fe002b3
fmtconvert: Remove float_interleave*
...
They were not public or used anywhere.
2015-08-22 08:29:10 -07:00
Timothy Gu
0aa9bbbc37
version: Fix two more typos
...
Same as cafba99b51 but applied to
lavf and lavu.
2015-08-22 08:09:03 -07:00
Rostislav Pehlivanov
7adb6d5aab
aacenc_quantization: replace copysign() with a ternary operator
...
This commit removes the last thing a Windows environment can
complain about the AAC encoder code. Leftover from an old revision.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-22 08:50:41 +01:00
Rostislav Pehlivanov
ae1b9c9754
fate: added PNS, TNS and IS tests for the AAC encoder
...
This commit adds tests for the PNS, TNS and IS functionality
of the encoder.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-22 08:12:20 +01:00
Rostislav Pehlivanov
2c94e45fad
aacenc_is: rename struct to follow guidelines
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-22 06:47:14 +01:00
Timothy Gu
e8279880dc
acenctab: Fix merge conflict
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-22 06:16:31 +01:00
Timothy Gu
21dd5279c3
aacenc: Add missing ff_ prefixes
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
2015-08-22 06:11:23 +01:00
Timothy Gu
d4401a9e0d
aacenc: Harmonize multiple inclusion guards
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
2015-08-22 04:56:36 +01:00
Timothy Gu
15ebc7787c
aacenctab: Add missing ff_ prefixes
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
2015-08-22 04:30:15 +01:00
Timothy Gu
5cbcf2b24d
aacenctab: Use FF_ARRAY_ELEMS
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
2015-08-22 04:07:09 +01:00
Ganesh Ajjanagadde
531b0a316b
avutil/x86/asm: rename REG_SP to REG_sp
...
REG_SP is defined by Solaris system headers.
This fixes a sea of warnings while building on Solaris:
http://fate.ffmpeg.org/report.cgi?time=20150820233505&slot=x86-opensolaris-gcc4.3
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-22 02:56:53 +02:00
Luca Barbato
61d8fa2a1a
h264: Fix faulty call to avpriv_request_sample
...
Broken in f9ab4fe1f7
2015-08-22 01:42:19 +02:00
Rostislav Pehlivanov
670dfda143
aacenc_tns: remove unused header
...
Thanks to @nevcairiel for pointing this one out.
Another thing which stopped msvc from compiling.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 23:36:09 +01:00
Clément Bœsch
cafba99b51
avcodec/version: fix 2 recently introduced typo
2015-08-21 19:33:28 -03:00
Rostislav Pehlivanov
5df166e430
aacenc_tns: re-enable coefficient compression
...
This time in a platform/compiler-generic way.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 21:36:06 +01:00
Rostislav Pehlivanov
88a5f93f62
aacenc: treat unknown profile as AAC-LC
...
When the encoder is ran without specifying -profile:a
the default avctx->profile value is -99 (FF_PROFILE_UKNOWN),
which used to be treated as AAC-LC.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 21:28:20 +01:00
Rostislav Pehlivanov
fb0c295cc3
aacenc_tns: temporarily disable coefficient compression
...
Hotfix to deal with msvc. Sane compilers lack POSIX ffs().
It only saves a single bit or so and isn't worth it that much.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 20:55:46 +01:00
Rostislav Pehlivanov
58cd5386e8
MAINTAINERS: add myself as an AAC encoder maintainer
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 19:44:15 +01:00
Rostislav Pehlivanov
76b81b10d9
aacenc: implement the complete AAC-Main profile
...
This commit finalizes AAC-Main profile encoding support
by implementing all mandatory and optional tools available
in the specifications and current decoders.
The AAC-Main profile reqires that prediction support be
present (although decoders don't require it to be enabled)
for an encoder to be deemed capable of AAC-Main encoding,
as well as TNS, PNS and IS, all of which were implemented
with previous commits or earlier of this year.
Users are encouraged to test the new functionality using either
-profile:a aac_main or -aac_pred 1, the former of which will enable
the prediction option by default and the latter will change the
profile to AAC-Main. No other options shall be changed by enabling
either, it's currently up to the users to decide what's best.
The current implementation works best using M/S and/or IS,
so users are also welcome to enable both options and any
other options (TNS, PNS) for maximum quality.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 19:38:05 +01:00
Rostislav Pehlivanov
a1c487e921
aacenc_tns: implement temporal noise shaping
...
This commit implements temporal noise shaping support in the
encoder, along with an -aac_tns option to toggle it on or off
(off by default for now). TNS will increase audio quality
and reduce quantization noise by applying a multitap FIR filter
across allowed coefficients and transmit side information to the
decoder so it could create an inverse filter.
Users are encouraged to test the new functionality by enabling
-aac_tns 1 during encoding.
No major bugs are observable at this time so after a while if no
new problems appear and if the current implementation is deemed
of high enough quality and stability it will be enabled by default,
possibly at the same time the encoder has its experimental flag
removed and becomes the standard aac encoder in ffmpeg.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 19:27:38 +01:00
Rostislav Pehlivanov
eab12d072e
aacenc: do not reject AAC-Main profile
...
This commit permits for the use of the Main profile
in encoding. The functionality of that profile will
be added in the commits following. By itself, this
commit does not alter anything.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 19:20:22 +01:00
Rostislav Pehlivanov
d1ca7142ac
aaccoder: move the Intensity Stereo implementation out
...
This commit moves the intensity stereo implementation
out from aaccoder and into a separate file. This was
possible using the previous commits.
This commit also drastically improves the IS implementation
by making it phase invariant e.g. it will always choose the
best possible phase regardless of whether M/S coding is on
or most of the coefficients have identical phases.
This also increases the quality and reduces any distortions
introduced by enablind intensity stereo.
Users are encouraged to test it out using the -aac_is 1
parameter as it has always been.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 19:13:26 +01:00
Rostislav Pehlivanov
860dbe0275
aaccoder_mips: update function definitions
...
This commit updates the function definitions in the aaccoder_mips.c
file. This was broken around a month or so ago with the addition
of the rounding argument.
The previous commit in this series also introduced a separate array
to put the quantization error in, this also needed to be updated,
albeit non-functional, in the MIPS optimized aaccoder file.
Credits for the rounding goes to Claudio Freire.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 19:00:15 +01:00
Rostislav Pehlivanov
43b378a0d3
aaccoder: move the quantization functions to a separate file
...
This commit moves the quantizer to a separate header file.
This allows the quantizer to be used from a separate files outside
of aaccoder without having to put another function pointer and will
result in a slight speedup as the compiler can do more optimizations.
This is required for commits following.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 18:53:14 +01:00
Rostislav Pehlivanov
b47a1e5c5f
aacenc: create and initialize an LTP context
...
This commit only creates and initializes an LTP
context which is needed for upcoming commits (TNS).
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 18:43:09 +01:00
Rostislav Pehlivanov
23e786be61
aacenc: populate the sce->ics.swb_offset table pointer
...
This commit simply populates the table pointer which is needed
for upcoming commits (TNS, prediction, etc.). Copied from
the decoder.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 18:40:44 +01:00
Rostislav Pehlivanov
e6c9f3a166
aacenc: reset special bands in the main frame encoding function
...
This commit moves the resetting of special bands (above RESERVED_BT)
to the main frame encoding function rather than the way it was done
previously in their corresponding search_for_... functions.
The reason why special bands need to be reset is that while normal
bands get chosen for every frame by the coder (twoloop by default)
the coders do not touch any special sfbs and will therefore
make them persist throughout the file.
If we zero them out any bands left unmarked will be chosen by
the second part of the coder (the trellis function in aaccoder.c).
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 18:36:09 +01:00
Rostislav Pehlivanov
32be264cea
aacenc: coding style changes
...
This commit only changes the coding style to a saner way
of accessing coefficients (makes more sense to get the
memory address of a coefficients and start from there
rather than adding arbitrary numbers to offset a pointer).
Some compilers might detect an out of bounds access easier.
Also the way M/S and IS coefficients are calculated has been
changed, but should still have the same result (with the exception
that IS now applies from the normal coefficients rather than the
pristine ones, this is needed for upcoming commits).
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-21 18:30:51 +01:00
Ganesh Ajjanagadde
907373ea9d
avcodec/x86/v210-init: fix unused variable warning
...
Fixes a -Wunused-variable while compiling with --disable-yasm on x86
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-21 17:06:27 +02:00
Ganesh Ajjanagadde
92b1a0fa9e
ffserver: cast PID to int64_t before printing
...
Unfortunately, there is no portable format specifier for PID's.
Furthermore, it is not safe to assume pid_t <= 32 bit in size,
see e.g http://unix.derkeiler.com/Mailing-Lists/AIX-L/2010-08/msg00008.html .
Right now, it is ok to assume pid_t <= 32 bit in size, but this may change in the future.
Also, this patch fixes warning due to lack of an appropriate cast from
http://fate.ffmpeg.org/report.cgi?time=20150820233505&slot=x86-opensolaris-gcc4.3 .
Note that this method of handling pid_t is in line with what nginx does.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-21 15:47:54 +02:00
Ganesh Ajjanagadde
5edf8b118d
avformat/hls: correct comment for ensure_playlist()
...
Comment was previously slightly incorrect.
Also, it was placed in the wrong location.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-21 14:21:10 +02:00
Michael Niedermayer
5176443b2b
avfilter/vf_vectorscope: Fix ;;
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-21 13:16:34 +02:00
Ganesh Ajjanagadde
36f7a37895
avcodec/jpeg2000: comment out unused variable
...
Fixes -Wunused-const-variable from
http://fate.ffmpeg.org/report.cgi?time=20150820031140&slot=arm64-darwin-clang-apple-5.1
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-21 13:01:44 +02:00
Michael Niedermayer
7c72a4bbd3
swscale/alphablend: Fix pointer type warnings
...
Found-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-21 12:14:08 +02:00
Michael Niedermayer
b3d2035ec3
ffmpeg: use av_err2str()
...
Found-by: Timothy Gu <timothygu99@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-21 12:11:09 +02:00
John Högberg
f9ab4fe1f7
h264: Discard currently unsupported registered sei
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-21 12:03:36 +02:00
Luca Barbato
47b447aaff
imgutils: Fix a typo in avcodec_get_pix_fmt_loss
...
If the candidate does not have alpha and the source does have alpha
report the loss of alpha.
CC: libav-stable@libav.org
2015-08-21 12:03:36 +02:00
Paul B Mahol
5e1d863760
avfilter/vf_vectorscope: support yuv(a)420p and yuv410p as input for common case
...
Speed up gain more than 2x.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-21 08:04:45 +00:00
Anton Khirnov
d8ebb6157d
hevcdsp: fix a function name
...
put_weighted_pred_avg should be put_unweighted_pred_avg, there is no
weighting there.
2015-08-21 08:46:05 +02:00
Anton Khirnov
a1926a29fb
hevc: avoid invalid shifts of negative values
2015-08-21 08:45:37 +02:00
James Almer
7a806c68a6
avcodec/hevcdsp: rename sao_band_filter c functions
...
Signed-off-by: James Almer <jamrial@gmail.com >
2015-08-21 02:24:30 -03:00
Vesselin Bontchev
e32a99264b
Add support for Audible AA files
...
https://en.wikipedia.org/wiki/Audible.com#Quality
2015-08-21 04:24:58 +00:00
Michael Niedermayer
45f3d4e63e
ffmpeg: Use correct codec_id for av_parser_change() check
...
No testcase known
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-21 03:37:32 +02:00
Michael Niedermayer
ac0ba6f233
ffmpeg: Check av_parser_change() for failure
...
No testcase known
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-21 03:37:32 +02:00
Michael Niedermayer
2bb54b82b5
avcodec/h264_mp4toannexb_bsf: Reorder operations in nal_size check
...
Fixes Ticket4778
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-21 03:37:32 +02:00
Michael Niedermayer
c8890941d6
ffmpeg: Check for RAWVIDEO and do not relay only on AVFMT_RAWPICTURE
...
The null muxer has AVFMT_RAWPICTURE set but can be fed with non-raw material
related to Ticket4778
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-21 03:37:09 +02:00
Michael Niedermayer
15ff3f3fdf
ffmpeg: check avpicture_fill() return value
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-21 03:18:57 +02:00
Paul B Mahol
4e8963fa38
avfilter: add video vectorscope filter
2015-08-20 22:57:47 +00:00
Ganesh Ajjanagadde
e8319f602e
avcodec/metasound_data: comment out unused variable
...
Fixes -Wunused-const-variable from
http://fate.ffmpeg.org/report.cgi?time=20150820031140&slot=arm64-darwin-clang-apple-5.1
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-20 23:39:04 +02:00
Andreas Cadhalpun
96f5fdebc3
graph2dot: use avfilter_pad_get_name accessor function
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-20 22:38:01 +02:00
Ludmila Glinskih
e23a01c06d
api-seek-test: first version
...
Works only with video stream.
First pass without seeking -- counts crcs of a frames and store it in an array.
After that it seeks a lot in different places and checks if crcs of these frames and crcs of frames in array are the same.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-20 21:40:11 +02:00
Ganesh Ajjanagadde
c3052c9e8a
avcodec/aacsbr_fixed: remove unused variable
...
Fixes -Wunused-const-variable from
http://fate.ffmpeg.org/report.cgi?time=20150820031140&slot=arm64-darwin-clang-apple-5.1
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-20 21:23:51 +02:00
Ganesh Ajjanagadde
b772847eb0
avformat/webmdashenc: fix uninitialized variable
...
Fixes -Wsometimes-uninitialized from
http://fate.ffmpeg.org/report.cgi?time=20150820031140&slot=arm64-darwin-clang-apple-5.1
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-20 21:03:08 +02:00
Lou Logan
538ea9a209
doc/indevs: Remove non-existent decklink option examples
...
Forgotten in c5d0148 . Found by Thomas Langhorst.
Signed-off-by: Lou Logan <lou@lrcd.com >
2015-08-20 10:34:18 -08:00
Henrik Gramner
515b69f8f8
checkasm: Explicitly declare function prototypes
...
Now we no longer have to rely on function pointers intentionally
declared without specified argument types.
This makes it easier to support functions with floating point parameters
or return values as well as functions returning 64-bit values on 32-bit
architectures. It also avoids having to explicitly cast strides to
ptrdiff_t for example.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-20 19:22:34 +02:00
Henrik Gramner
e13da244f4
checkasm: x86: properly save rdx/edx in checked_call()
...
If the return value doesn't fit in a single register rdx/edx can in some
cases be used in addition to rax/eax.
Doesn't affect any of the existing checkasm tests but might be useful later.
Also comment the relevant code a bit better.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-20 19:22:06 +02:00
Janne Grunau
faa3f17a76
fate: test only demuxing in asf-repldata
2015-08-20 16:22:52 +02:00
Ganesh Ajjanagadde
ecf6b26aa5
avformat/ftp: use correct enum type
...
Fixes -Wenum-conversion from
http://fate.ffmpeg.org/report.cgi?time=20150820031140&slot=arm64-darwin-clang-apple-5.1
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-20 12:22:50 +02:00
Carl Eugen Hoyos
9bd305be91
lavf/mpeg: Allow users to force audio codec MLP.
...
Fixes part of ticket #4786 .
2015-08-20 12:19:00 +02:00
Michael Niedermayer
db91e0edb6
avformat/mux: Update sidedata in ff_write_chained()
...
Fixes Ticket4777
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-20 03:42:04 +02:00
Mariusz Szczepańczyk
bf5b2f9df8
lavf/ftp: implement move and delete callbacks
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-20 00:08:16 +02:00
Michael Niedermayer
034e6fbd9c
configure: Check for CoreServices/CoreServices.h and make vda+viedotoolbox depend on it
...
Fixes arm cross build on osx
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-19 22:49:20 +02:00
Michael Niedermayer
0b7829901b
*/version.h: Add note/recommandition about bumping major
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-19 21:37:32 +02:00
Lou Logan
2edb7ab1cb
MAINTAINERS: add myself as a docs maintainer
...
Signed-off-by: Lou Logan <lou@lrcd.com >
2015-08-19 10:47:38 -08:00
Lou Logan
4918726d41
doc/indevs: add various missing options
...
Signed-off-by: Lou Logan <lou@lrcd.com >
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
2015-08-19 10:34:24 -08:00
Paul B Mahol
2fa019958b
avfilter: add showfreqs filter
2015-08-19 16:15:13 +00:00
Henrik Gramner
e6b8797b82
checkasm: x86: properly save rdx/edx in checked_call()
...
If the return value doesn't fit in a single register rdx/edx can in some
cases be used in addition to rax/eax.
Doesn't affect any of the existing checkasm tests but might be useful later.
Also comment the relevant code a bit better.
2015-08-19 16:17:35 +02:00
Henrik Gramner
18b101ff59
checkasm: Explicitly declare function prototypes
...
Now we no longer have to rely on function pointers intentionally
declared without specified argument types.
This makes it easier to support functions with floating point parameters
or return values as well as functions returning 64-bit values on 32-bit
architectures. It also avoids having to explicitly cast strides to
ptrdiff_t for example.
2015-08-19 16:17:35 +02:00
Ronald S. Bultje
99b9f0136c
fate: rename -error option to -error_rate.
...
This fixes fate when FF_API_ERROR_RATE=0.
2015-08-19 10:01:42 -04:00
Pedro Arthur
62d176de12
swscale: refactor vertical scaler
2015-08-19 10:43:52 -03:00
Ivan Uskov
fffae8e605
libavcodec/qsvdec.c: the ff_get_format() missed at refactoring has been restored
...
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-19 14:20:24 +02:00
Gwenole Beauchesne
9d1d7b367e
vaapi: drop unused include.
...
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com >
2015-08-19 14:15:43 +02:00
Gwenole Beauchesne
8813d55fa5
vaapi: fix usage of invalid buffer ids.
...
Invalid buffer ids are defined by VA_INVALID_ID. Use that through out
vaapi_*.c support files now that we have private data initialized and
managed by libavcodec. Previously, the only requirement for the public
vaapi_context struct was to be zero-initialized.
This fixes support for 3rdparty VA drivers that strictly conform to
the API whereby an invalid buffer id is VA_INVALID_ID and the first
valid buffer id can actually be zero.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com >
2015-08-19 14:05:32 +02:00
Gwenole Beauchesne
babd340f58
vaapi: streamline public context structure.
...
Move libavcodec managed objects from the public struct vaapi_context
to a new privately owned FFVAContext. This is done so that to clean up
and streamline the public structure, but also to prepare for new codec
support, thus requiring new internal data to be added in there.
The AVCodecContext.hwaccel_context, that holds the public vaapi_context,
shall no longer be accessed from within vaapi_*.c codec support files.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com >
2015-08-19 14:03:24 +02:00
Gwenole Beauchesne
9f8e57efe4
vaapi: define a unique pixel format for VA-API (AV_PIX_FMT_VAAPI).
...
Deprecate older VA pixel formats (MOCO, IDCT) as it is now very unlikely
to ever be useful in the future. Only keep plain AV_PIX_FMT_VAAPI format
that is aliased to the older VLD variant.
This is an API change.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com >
2015-08-19 14:03:24 +02:00
Sven Dueking
6eecb91fbc
avcodec/qsvenc: Added PicTiming SEI
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-19 13:49:37 +02:00
Neil Birkbeck
3dabebc272
libavformat/matroskaenc.c: fix small memory leaks on error
...
Fixing small leaks that can occur when mkv_write_tracks fails in mkv_write_header
(e.g., if video track has unknown codec). Also changing mkv_write_seekhead to take
the MatroskaMuxContext to avoid having dangling pointers.
Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-19 13:17:21 +02:00
Paul B Mahol
fa95965f5a
avfilter/vf_histogram: make it possible to pick color components for levels mode
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-19 10:05:33 +00:00
Ronald S. Bultje
6495c4c687
lavfi: fix compilation with FF_API_OLD_FILTER_OPTS=0.
2015-08-18 22:22:49 -04:00
Michael Niedermayer
c1507db617
fate: Force simple idct for fate-asf-repldata
...
otherwise it can fail when a different idct is used on some platform
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-19 03:51:57 +02:00
Lou Logan
5d410a1db2
doc/indevs: fix fbdev typos
...
Fixes ticket #4784 as found by rodarmor.
Signed-off-by: Lou Logan <lou@lrcd.com >
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2015-08-18 13:14:57 -08:00
Pedro Arthur
4545906f60
swscale: Fixed typos
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-18 22:56:50 +02:00
Pedro Arthur
ed80dec621
swscale: fixed compiler warnings
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-18 22:56:50 +02:00
Pedro Arthur
0f3687d6fb
swscale: add license headers and copyrights
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-18 22:56:50 +02:00
Derek Buitenhuis
c981b1145a
libx264: Add option to force IDR frames
...
Currently, when forcing an I frame, via API, or via the ffmpeg cli,
using -force_key_frames, we still let x264 decide what sort of
keyframe to user. In some cases, it is useful to be able to force
an IDR frame, e.g. for cutting streams.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2015-08-18 17:40:36 -03:00
Ronald S. Bultje
87068ea5c5
lavu: disable wrong value check in get_version() upon api bump.
2015-08-18 15:57:20 -04:00
wm4
a383f226f0
lavc: move vdpau decoders under FF_API_VDPAU.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com >
2015-08-18 15:57:20 -04:00
Ronald S. Bultje
030b5a4f77
lavc: put remaining bits of vdpau-in-decoder under FF_API_CAP_VDPAU.
2015-08-18 15:57:19 -04:00
Ronald S. Bultje
7a629186ba
Prepare for removal of obsolete FF_IDCT_* members.
2015-08-18 15:41:06 -04:00
Ronald S. Bultje
9468207e1c
mpeg4video: use ff_dlog instead of av_log under debug&FF_DEBUG_PTS.
...
This fixes compilation with FF_API_UNUSED_MEMBERS=0.
2015-08-18 15:39:41 -04:00
Stephen Hutchinson
c5308eea29
configure: force -mconsole when linking SDL under MinGW
...
When building SDL with MinGW, it sets -mwindows with the
assumption that the application is a GUI application. If this
is linked without passing -mconsole to configure via
--extra-ldflags, stdout will be silenced from cmd.exe while
running FFmpeg.
The -mwindows flag that causes this behavior is included in the
sdl_libs variable, so append -mconsole there rather than create
an sdl_ldflags case just to insert it (especially if -mconsole
must come *after* -mwindows in order to be effective).
Reviewed-by: Timothy Gu <timothygu99@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-18 21:20:50 +02:00
Ronald S. Bultje
3285005347
Undeprecate av_opt_set_defaults2().
2015-08-18 13:09:06 -04:00
Ronald S. Bultje
e3b7298aed
lavc: fix compilation with FF_API_XVMC.
2015-08-18 12:05:57 -04:00
Ronald S. Bultje
ad45121d56
options: mark av_get_{int,double,q} as deprecated.
...
Convert last users to av_opt_get_*() counterparts.
2015-08-18 12:05:17 -04:00
Ronald S. Bultje
b07d2a2509
libvpxenc: make flags i64 instead of dbl.
2015-08-18 12:04:57 -04:00
Ronald S. Bultje
6471040f56
FF_OPT_TYPE_* -> AV_OPT_TYPE_*.
2015-08-18 11:48:49 -04:00
Ronald S. Bultje
229843aa35
Replace av_dlog with ff_dlog.
...
ff_dlog checks compilability, and is non-public. av_dlog is deprecated
and no longer exists if FF_API_DLOG=0.
2015-08-18 10:24:01 -04:00
Ronald S. Bultje
ad7d972e08
lavfi: add error message to help users convert to new lavfi syntax.
2015-08-18 10:18:43 -04:00
Michael Niedermayer
22f85543ed
scale2ref: override request_frame() and correctly connect them to the corresponding inputs
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-18 15:59:23 +02:00
Michael Niedermayer
db0f8f3f9d
avfilter/vf_scale: Set scale2ref ref output timebase
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-18 15:59:23 +02:00
Ronald S. Bultje
70a19c482a
Move ff_dlog from lavc to lavu.
2015-08-18 09:46:49 -04:00
Arttu Ylä-Outinen
b807f7e286
configure: Use pkg-config for libkvazaar.
...
Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi >
Liked-by: wm4 <nfxjfg@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-18 12:30:39 +02:00
Hendrik Leppkes
649b2e4c83
Merge commit '317cfaa5e09755ed0b34af512ec687963a67bdbf'
...
* commit '317cfaa5e09755ed0b34af512ec687963a67bdbf':
asfdec: prevent the memory leak in the asf_read_metada_obj
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-18 09:35:56 +02:00
Hendrik Leppkes
4b6ccccb03
Merge commit '58c3720a3cc71142b5d48d8ccdc9213f9a66cd33'
...
* commit '58c3720a3cc71142b5d48d8ccdc9213f9a66cd33':
fate: Make sure a corner-case for ASF is covered
Adjusted fate ref to match the different timebase of the ffasf demuxer
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-18 09:34:53 +02:00
Hendrik Leppkes
316825f3e9
Merge commit '72839fce6457fdb5d51b4a5381ac52914ee66389'
...
* commit '72839fce6457fdb5d51b4a5381ac52914ee66389':
hlsenc: Use AV_TIME_BASE units for all the computations
Not merged, duration/time computation is handled quite differently in ffmpeg's hlsenc
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-18 09:22:41 +02:00
Hendrik Leppkes
983fa5a1a9
Merge commit '7bf9647264308d2df74b2b50669f2d02a7ecc90b'
...
* commit '7bf9647264308d2df74b2b50669f2d02a7ecc90b':
vp7: bound checking in vp7_decode_frame_header
Only partially merged, see 46f72ea507
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-18 09:14:08 +02:00
Hendrik Leppkes
e721cb8d8b
Merge commit 'f34b152eb7b7e8d2aee57c710a072cf74173fbe1'
...
* commit 'f34b152eb7b7e8d2aee57c710a072cf74173fbe1':
libfdk-aacdec: Clean up properly if the init fails
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-18 09:09:55 +02:00
Hendrik Leppkes
4cf4831ae7
Merge commit '1b90433f79de857550d4d8c35c89fbe954920594'
...
* commit '1b90433f79de857550d4d8c35c89fbe954920594':
libfdk-aacdec: Always decode into an intermediate buffer
Conflicts:
libavcodec/libfdk-aacdec.c
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-18 09:05:54 +02:00
Hendrik Leppkes
9dc30d0811
Merge commit '87de6ddb7b7674e329d5c96677bd8685bc7f7855'
...
* commit '87de6ddb7b7674e329d5c96677bd8685bc7f7855':
libfdk-aacdec: Bump the max number of channels to 8
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-18 09:02:15 +02:00
Hendrik Leppkes
fdca935013
Merge commit 'cb2dbe2c762dae44d890aa26620bcdd9022fd0f3'
...
* commit 'cb2dbe2c762dae44d890aa26620bcdd9022fd0f3':
configure: arm: Assume softfp ABI on darwin
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-18 09:02:01 +02:00
Hendrik Leppkes
9c22aedd26
Merge commit '44b44441203177690305c294be6eff8d9c668954'
...
* commit '44b44441203177690305c294be6eff8d9c668954':
x86inc: Various minor backports from x264
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-18 09:01:35 +02:00
Hendrik Leppkes
1907e19d0c
Merge commit '26ac22e5e7394346e9d59f800e7d4e91f4518d33'
...
* commit '26ac22e5e7394346e9d59f800e7d4e91f4518d33':
movenc: Add a new flag for writing global sidx indexes for dash
Conflicts:
libavformat/movenc.c
libavformat/movenc.h
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-18 08:50:22 +02:00
Pedro Arthur
737aa902f0
swscale: process horizontal lines in batches
...
Process more lines in a single pass to improve performance
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-18 01:33:32 +02:00
Pedro Arthur
e0a3173a94
swscale: refactor horizontal scaling
...
+ split color conversion from scaling
- disabled gamma correction, until it's refactored too
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-18 01:33:32 +02:00
Ronald S. Bultje
a27c9f61bf
fate: add -fflags +bitexact in a few places.
...
This improves results after FF_API_LAVF_BITEXACT=0. It still doesn't
pass, because of mov rtphint track which I don't understand (yet).
2015-08-17 19:14:37 -04:00
Ronald S. Bultje
61043777d7
fate: explicitly specify audio bitrate for adpcm/mp2fixed tests.
...
They picked up defaults, which changes from 128 to 200 when we remove
FF_API_OLD_AVOPTIONS.
2015-08-17 18:13:03 -04:00
Ronald S. Bultje
cdbd3b1e7d
fate: move -flags +mv0 -> -mpv_flags +mv0.
...
Fixes associated fate tests when FF_API_MV0=0.
2015-08-17 17:46:43 -04:00
Michael Niedermayer
21566b21d5
avfilter: add scale2ref filter
...
This filter can be used to scale one stream to match another or based on
another, useful to scale subtitles or other things to be overlayed
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-17 17:18:01 +02:00
Carl Eugen Hoyos
84170d4be0
lavc/mjpegdec: Detect more CMYK images.
...
Fixes ticket #4772 .
2015-08-17 15:53:41 +02:00
Michael Niedermayer
3afca32561
swscale/swscale-test: Fix slice height in random reference data creation.
...
Found-by: Pedro Arthur <bygrandao@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-17 03:08:10 +02:00
Michael Niedermayer
7f769ae41e
avcodec/rv30: fix switching back to the original resolution
...
Fixes part of Ticket1388
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-17 02:07:34 +02:00
Philip Langdale
d3eb317b86
ffmpeg_vdpau: Ignore decoder's max supported level
...
The h264 decoder reports 4.1 as its maximum level, but it will decode
5.1 4K video just fine. In practice, the published level limits in
vdpau do not communicate anything that's actually useful.
2015-08-16 15:02:33 -07:00
Andreas Cadhalpun
d90fbde06a
buffersink: introduce FIFO_INIT_ELEMENT_SIZE to complement FIFO_INIT_SIZE
...
Use sizeof(void *) as its value, because AVFilterBufferRef is deprecated.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-16 22:36:20 +02:00
Alexandra Hájková
317cfaa5e0
asfdec: prevent the memory leak in the asf_read_metada_obj
...
also do not return the error code but just break reading
metadata object in the case of the aspect ratio reading failure
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-16 20:00:37 +02:00
Alexandra Hájková
58c3720a3c
fate: Make sure a corner-case for ASF is covered
...
Test the demuxer for the case when the replicated data length in
a sample is 0.
Sample-ID: https://samples.libav.org/mplayer-bugs/bug821/bug821-2.asf
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-16 19:16:35 +02:00
Luca Barbato
72839fce64
hlsenc: Use AV_TIME_BASE units for all the computations
...
Do not risk mixing different timebases.
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-16 19:02:16 +02:00
Federico Tomassetti
7bf9647264
vp7: bound checking in vp7_decode_frame_header
...
CC: libav-stable@libav.org
2015-08-16 19:02:16 +02:00
Andreas Cadhalpun
fbc8eb6857
ffmpeg: use av_buffersrc_add_frame instead of av_buffersrc_add_ref
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-16 18:17:00 +02:00
Michael Niedermayer
0cb87cd7d4
avfilter/avfiltergraph: Implement and use find_best_sample_fmt_of_2()
...
Similar to the pixel format code
Fixes Ticket3847
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-16 14:59:58 +02:00
Rodger Combs
b4b2717ffe
lavf/matroskadec: Fully parse and repack MP3 packets
...
Fixes https://trac.ffmpeg.org/ticket/4776
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-16 11:46:33 +02:00
Michael Niedermayer
31d6f8de53
doc/filter_design: Remove reference to the deprecated and unused cur_buf_copy
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-16 11:46:33 +02:00
Mariusz Szczepańczyk
767d780ec0
doc/examples: rename avio_list_dir -> avio_dir_cmd
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-16 02:16:47 +02:00
Martin Storsjö
f34b152eb7
libfdk-aacdec: Clean up properly if the init fails
...
Previously most of the error paths leaked.
Also add FF_CODEC_CAP_INIT_THREADSAFE while adding caps_internal;
this decoder wrapper doesn't have any static data that is initialized.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-08-16 00:18:00 +03:00
Martin Storsjö
1b90433f79
libfdk-aacdec: Always decode into an intermediate buffer
...
For ADTS streams, the output format (number of channels, frame size)
can change at any point (with the latest version of fdk-aac, the decoder
seems to change format after a handful of frames, not outputting the
right format immediately, for cases that worked fine with the earlier
version of the lib).
Previously, the decoder decoded straight into the output frame once the
number of channels and frame size was known. This obviously does not
work if the number of channels or frame size changes.
The alternative would be to allocate the AVFrame with the maximum number
of channels and frame size, and change them afterward decoding into it,
but that may cause confusion to users e.g. of the get_buffer callback.
This solution should be more robust.
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-08-16 00:17:49 +03:00
Martin Storsjö
87de6ddb7b
libfdk-aacdec: Bump the max number of channels to 8
...
In the latest version of fdk-aac, the decoder can output up to 8
channels; take this into account when preallocating buffers that
need to fit the output from any packet.
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-08-16 00:17:46 +03:00
Martin Storsjö
cb2dbe2c76
configure: arm: Assume softfp ABI on darwin
...
Don't try to detect the float ABI by checking at the toolchain
name or by trying to assemble and link files with eabi_attributes.
This fixes the float ABI detection when building using clang
with -fembed-bitcode, where the current eabi_attributes check
accidentally passes.
This issue was pointed out by James Howe <james.howe@hp.com >.
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-08-16 00:17:22 +03:00
Michael Niedermayer
4ada49f9db
ffmpeg: Use the decoders dimensions in sub2video_get_blank_frame()
...
Fixes Ticket4744 part3
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-15 17:41:48 +02:00
Michael Niedermayer
bd5d11d9f5
ffmpeg: Use actual frame dimensions in checks in sub2video_update()
...
Fixes Ticket4744 part2
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-15 17:41:48 +02:00
Michael Niedermayer
0ac83047f6
ffmpeg: Print sub2video: rectangle coordinates in case of overflows
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-15 17:41:48 +02:00
Michael Niedermayer
72237ef6e9
ffmpeg_filter: Do not override the dimensions in sub2video_prepare()
...
Fixes ticket4744 part1
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-15 17:41:48 +02:00
Michael Niedermayer
b1f59bb660
avcodec/flashsvenc: Correct max dimension in error message
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-15 15:21:04 +02:00
Michael Niedermayer
88fe45e0fe
avcodec/svq1enc: Check dimensions
...
Fixes assertion failure
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-15 15:06:01 +02:00
Niklesh
a604289b85
movtextdec: Add support for automatic text wrapping
...
The value of wrap_flag in the Text Wrap Box specifies if the text is to
be wrapped or not. Uses 'end of line wrap' amongst the wrap styles
supported by ASS if the text is to be wrapped, i.e; fill as much text
in a line as possible, then break to next line.
The 3GPP spec has no provision for smart wrapping.
Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in >
2015-08-14 19:35:26 -07:00
Mariusz Szczepańczyk
c84d208c27
examples/avio_list_dir: add move and delete methods
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-15 03:32:38 +02:00
Paul B Mahol
4b0e112442
avfilter/avf_avectorscope: add polar mode
2015-08-14 17:27:56 +02:00
Sven Dueking
f3fbe790d9
avcodec/qsvenc: Set MaxKpbs to rc_max_rate for CBR and VBR (bitrate is equal to rc_max_rate for CBR)
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-14 14:51:47 +02:00
Marton Balint
95584ddac4
mxfdec: set AVFMT_SEEK_TO_PTS demuxer flag
...
Since 53f2ef2c4a seeking is done using PTS.
Signed-off-by: Marton Balint <cus@passwd.hu >
2015-08-14 14:20:25 +02:00
Michael Niedermayer
012784052a
avcodec/faxcompr: negate uncompressed runs
...
Fixes remaining part of Ticket700
Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-14 13:54:05 +02:00
Michael Niedermayer
b2e95e012c
avcodec/faxcompr: Factor decode_uncompressed() out
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-14 13:47:18 +02:00
Stefano Sabatini
fedc422684
lavf/mpegts: apply misc option description fixes
...
Use impersonal form, drop capitalization and ending dot.
2015-08-14 12:08:57 +02:00
Stefano Sabatini
90f5668323
doc/demuxers/mpegts: apply a minor grammar fix to option description
...
Consistently use impersonal form.
2015-08-14 12:08:57 +02:00
Stefano Sabatini
819dc7aa0b
doc/demuxers/mpegts: update documentation
...
The description is yet crappy, it merely copies the description of the
added and undocumented options and their value range. More descriptive
documentation is welcome.
2015-08-14 12:08:57 +02:00
Michael Niedermayer
ae2cb9290a
ffmpeg_opt: Prefer audio streams with packets
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-14 10:43:16 +02:00
Michael Niedermayer
856452cf63
avformat/rmdec: MLTI with multiple MDPR support
...
Fixes Ticket4496
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-14 04:40:00 +02:00
Michael Niedermayer
02fff49936
avformat/rmdec: Move MLTI handling out of ff_rm_read_mdpr_codecdata()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-14 03:32:00 +02:00
Mariusz Szczepańczyk
affbecb0de
lavf/ftp: implement NLST method
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-14 01:00:11 +02:00
Michael Niedermayer
5fec7942bf
doc/developer: Suggest everyone to help with patch reviews
...
Reviewed-by: Timothy Gu <timothygu99@gmail.com >
Reviewed-by: compn <tempn@mi.rr.com >
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-13 19:49:11 +02:00
James Almer
1c10c1aa3c
crypto_bench: add support for ripemd-128
...
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-08-13 13:45:58 -03:00
James Almer
bd1fe53eab
crypto_bench: add support for xtea
...
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-08-13 13:45:26 -03:00
James Almer
a791e32b15
crypto_bench: add support for rc4
...
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-08-13 13:45:20 -03:00
James Almer
1184795db6
crypto_bench: add support for blowfish
...
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-08-13 13:45:14 -03:00
Michael Niedermayer
7727f76230
avcodec/tiff: Support uncompressed G3 CCITT fax
...
Fixes part of Ticket700
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-13 17:02:05 +02:00
Michael Niedermayer
a4f9bb228b
avcodec/faxcompr: Support uncompressed escapes in decode_group3_1d_line()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-13 17:01:11 +02:00
Michael Niedermayer
dd1b4ed6d9
avcodec/tiff: Support uncompressed G4 CCITT fax
...
Fixes part of ticket700
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-13 16:33:36 +02:00
Michael Niedermayer
38025e6898
avcodec/faxcompr: Support cmode == 9 && xxx == 7
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-13 16:11:00 +02:00
Michael Niedermayer
bd2d4cc4a9
avcodec/faxcompr: Print the unsupported mode number
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-13 14:39:15 +02:00
Michael Niedermayer
acbd78a001
avformat/wavdec: Detect wrongly interpreted specification about the sample value in the fact chunk
...
Fixes Ticket703
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-13 12:38:31 +02:00
Michael Niedermayer
4ec4454ccf
avformat/wavdec: Do not discard sample_count due to rounding
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-13 12:38:20 +02:00
Henrik Gramner
44b4444120
x86inc: Various minor backports from x264
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-13 07:46:24 +02:00
Ganesh Ajjanagadde
1bbb5ea10d
avformat/tls_gnutls: correct version detection for certificate support
...
Fixes Ticket3748
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-13 02:24:37 +02:00
Michael Niedermayer
d21ab8e411
avcodec/dvbsubdec: Print field lens in case they are too lerge
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-13 01:50:08 +02:00
Marton Balint
8009a1f1fd
avisynth: fix setting stream timebase
...
Stream timebase should be set using avpriv_set_pts_info, otherwise
avctx->pkt_timebase is not correct.
This should fix ticket #4766 .
Patch is only compile tested.
Signed-off-by: Marton Balint <cus@passwd.hu >
Reviewed-by: Stephen Hutchinson <qyot27@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-13 01:20:16 +02:00
Niklesh
1bf8f54274
movtextdec: Use default style information from movtext header
...
As suggested, posting the combined patch with the fate changes.
The patch sets the default style in ASS from the default style
information present in the movtext header.
Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in >
2015-08-12 14:43:19 -07:00
Michael Niedermayer
1f86079376
avcodec/mpeg12dec: Check chroma_format
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-12 22:51:40 +02:00
Michael Niedermayer
0d2a62d257
avformat/avidec: Simplify dshow_block_align based special case detection
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-12 22:51:40 +02:00
Paul B Mahol
f9905e13ea
avfilter: add aphasemeter filter
2015-08-12 22:27:43 +02:00
Michael Niedermayer
45c558563a
avformat: Move MAX_PROBE_PACKETS to internal.h
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-12 17:33:47 +02:00
Martin Storsjö
26ac22e5e7
movenc: Add a new flag for writing global sidx indexes for dash
...
The double meaning of the faststart flag (moving a moov atom
to the start of files, making them streamable, for non-fragmented
files, vs inserting a global sidx index at the start of files
for fragmented files) is confusing - see 40ed1cbf1 for
explanation of its origins.
Since the second meaning of the flag hasn't been part of any
libav release yet, just rename it to get rid of the confusion
without any extra deprecation (which wouldn't get rid of the
potential confusion, of users adding -movflags faststart
even for fragmented files, where it isn't needed for making
them "streamable").
This gets back the old behaviour, where -movflags faststart
doesn't have any effect for fragmented files.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-08-12 13:41:46 +03:00
Hendrik Leppkes
8a8aee358d
Merge commit 'ab43beefab9147673e09679e04be08431684a5db'
...
* commit 'ab43beefab9147673e09679e04be08431684a5db':
x86inc: Drop SECTION_TEXT macro
See f0b7882ceb
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-12 12:40:45 +02:00
Hendrik Leppkes
f0da598069
Merge commit '1c6bb813284732d9a1acacfe99522d9f66ebf73e'
...
* commit '1c6bb813284732d9a1acacfe99522d9f66ebf73e':
x86inc: Disable vpbroadcastq workaround in newer yasm versions
See f151fbd9e5
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-12 12:37:44 +02:00
Hendrik Leppkes
9947902601
Merge commit 'f5e486f6f8c242bb2be01ad3ae952b5733ba1113'
...
* commit 'f5e486f6f8c242bb2be01ad3ae952b5733ba1113':
x86inc: Fix instantiation of YMM registers
See e93d3a22cb
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-12 12:37:22 +02:00
Hendrik Leppkes
30cd9695a7
Merge commit 'b114d28a18050b5ebd22fc067332e5487243889c'
...
* commit 'b114d28a18050b5ebd22fc067332e5487243889c':
x86inc: warn when instructions incompatible with current cpuflags are used
See a1684311b3
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-12 12:37:01 +02:00
Hendrik Leppkes
0e35296da5
Merge commit '9f1245eb9620a70feaa00ba745c6c7a56a839556'
...
* commit '9f1245eb9620a70feaa00ba745c6c7a56a839556':
x86inc: Support arbitrary stack alignments
See 826790f596
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-12 12:36:08 +02:00
Hendrik Leppkes
eaf3fb877f
Merge commit '8c75ba55a4367c854b577c849ea2195bd78c4c81'
...
* commit '8c75ba55a4367c854b577c849ea2195bd78c4c81':
x86inc: warn if XOP integer FMA instruction emulation is impossible
See 8db0f71b49
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-12 12:35:41 +02:00
Hendrik Leppkes
47c1f36b49
Merge commit '8f4a06faf45c1cbcabec610f4b47824171379934'
...
* commit '8f4a06faf45c1cbcabec610f4b47824171379934':
checkasm: Remove unnecessary include
See 5e8e121fcc
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-12 12:33:20 +02:00
Hendrik Leppkes
2752a038bc
Merge commit '4a53c758d2f69302e6822b23f3e7349253b9e8d3'
...
* commit '4a53c758d2f69302e6822b23f3e7349253b9e8d3':
x86: dcadsp: Avoid SSE2 instructions in SSE functions
See fc7e02f0ff
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-12 12:32:13 +02:00
Ganesh Ajjanagadde
8b63a88494
doc/ffmpeg,doc/ffplay: reference timespec definitions
...
Reference time definition syntax in option descriptions when appropriate.
Fixes trac ticket #4595 .
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Stefano Sabatini <stefasab@gmail.com >
2015-08-12 11:52:40 +02:00
Alexis Ballier
4f74efa76d
libavcodec/tableprint_vlc.h: include lavu/reverse.c for ff_reverse.
...
Fixes the build with --enable-hardcoded-tables since ff_reverse has moved to lavu.
2015-08-12 11:37:24 +02:00
Michael Niedermayer
5f501f066e
avformat/avidec: Disable AVSTREAM_PARSE_TIMESTAMPS for flac
...
The flac parser does not support it, its also not needed.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-12 04:03:37 +02:00
Michael Niedermayer
254ff6e6bf
avformat/avidec: Add flac to the dshow_block_align exception list
...
Fixes Ticket4758
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-12 03:11:15 +02:00
Michael Niedermayer
542562e5ab
avcodec/gsm_parser: Replace codec_id check by assert
...
A parser should never be called with a mismatching codec
Found-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-12 01:00:20 +02:00
Andreas Cadhalpun
107e54c5bf
avutil: add ff_reverse as av_reverse replacement
...
The table is used in libavutil/eval.c.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-12 00:14:14 +02:00
Andreas Cadhalpun
9c29aa7143
ffmpeg: replace deprecated av_log_ask_for_sample with av_log
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-12 00:14:13 +02:00
Andreas Cadhalpun
13b3462b7a
avfilter: add missing FF_API_AVFILTERPAD_PUBLIC guard
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-12 00:14:13 +02:00
Ganesh Ajjanagadde
36e17d994e
tests/fate-run: make FATE non-interactive
...
FATE is non-interactive; it should not listen to user commands
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
This should fix leaving the terminal in a messed up state with
zsh in case of crashes during fate
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-12 00:10:57 +02:00
Michael Niedermayer
8992029fc0
avcodec/g729_parser: Replace codec_id check by assert
...
A parser should never be called with a mismatching codec
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-11 23:16:35 +02:00
Ganesh Ajjanagadde
0581ab2cac
avcodec/g729: add g729_parser
...
Add trivial g729 parser; fixes Ticket4753
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-11 23:16:35 +02:00
Carl Eugen Hoyos
daf2c35f52
lavc: Remove newline from avpriv_request_sample() calls.
2015-08-11 22:50:45 +02:00
Paul B Mahol
f0708b751f
avfilter/vsrc_testsrc: correct colors for smptebars
2015-08-11 16:19:41 +02:00
Ganesh Ajjanagadde
92a4bda95b
doc/ffmpeg: correct minor typo
...
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-11 14:39:23 +02:00
Ivan Uskov
44857e7a36
libavcodec/qsvdec.c: Extended error messages for MFXVideoDECODE_Init() result
...
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-11 14:18:43 +02:00
wm4
67db57ea12
mmaldec: fix problems with flush logic
...
Don't try to do a blocking wait for MMAL output if we haven't even sent
a single real packet, but only flush packets. Obviously we can't expect
to get anything back.
Additionally, don't send a flush packet to MMAL in the same case. It
appears the MMAL decoder will sometimes hang in mmal_vc_port_disable()
(called from ffmmal_close_decoder()), waiting for a reply from the GPU
which never arrives. Either MMAL disallows sending flush packets without
preceding real data, or it's a MMAL bug.
2015-08-11 12:14:15 +02:00
wm4
7f116973d5
mmaldec: do not mutate user's AVCodecContext extradata field
2015-08-11 12:14:15 +02:00
wm4
750f72d775
mmaldec: hack against buffering problems on broken input
...
I can't come up with a nice way to handle this. It's hard to keep the
lock-stepped input/output in this case. You can't predict whether the
MMAL decoder will output a picture (because it's asynchronous), so
you have to assume in general that any packet could produce 0 or 1
frames. You can't continue to write input packets to the decoder,
because then you might get too many output frames, which you can't
get rid of because the lavc decoding API does not allow the decoder
to return an output frame without consuming an input frame (except
when flushing).
The ideal fix is a M:N decoding API (preferably asynchronous), which
would make this code potentially much cleaner. For now, this hack
will do.
2015-08-11 12:14:15 +02:00
Marton Balint
0860016529
concatdec: fix broken file_inpoint calculation
...
Should fix ticket #4765 .
Signed-off-by: Marton Balint <cus@passwd.hu >
2015-08-11 11:19:17 +02:00
Henrik Gramner
ab43beefab
x86inc: Drop SECTION_TEXT macro
...
The .text section is already 16-byte aligned by default on all supported
platforms so `SECTION_TEXT` isn't any different from `SECTION .text`.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 11:12:01 +02:00
Henrik Gramner
1c6bb81328
x86inc: Disable vpbroadcastq workaround in newer yasm versions
...
The bug was fixed in 1.3.0, so only perform the workaround in earlier versions.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 11:11:27 +02:00
Christophe Gisquet
f5e486f6f8
x86inc: Fix instantiation of YMM registers
...
Signed-off-by: Henrik Gramner <henrik@gramner.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 11:09:08 +02:00
Anton Mitrofanov
b114d28a18
x86inc: warn when instructions incompatible with current cpuflags are used
...
Signed-off-by: Henrik Gramner <henrik@gramner.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 11:07:18 +02:00
Henrik Gramner
9f1245eb96
x86inc: Support arbitrary stack alignments
...
Change ALLOC_STACK to always align the stack before allocating stack space for
consistency. Previously alignment would occur either before or after allocating
stack space depending on whether manual alignment was required or not.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 11:04:11 +02:00
Anton Mitrofanov
8c75ba55a4
x86inc: warn if XOP integer FMA instruction emulation is impossible
...
Emulation requires a temporary register if arguments 1 and 4 are the same; this
doesn't obey the semantics of the original instruction, so we can't emulate
that in x86inc.
Also add pmacsdql emulation.
Signed-off-by: Henrik Gramner <henrik@gramner.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 11:02:27 +02:00
Henrik Gramner
8f4a06faf4
checkasm: Remove unnecessary include
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 11:00:53 +02:00
Henrik Gramner
4a53c758d2
x86: dcadsp: Avoid SSE2 instructions in SSE functions
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-11 09:22:46 +02:00
Rostislav Pehlivanov
ef8e5a61c8
aacenc: Move small misc. functions to a separate file
...
As well as tables littered everywhere, functions were spread
out all across the encoder's files. This moves them to a single
place where they can be used by either the encoder's main files
or additional encoder files. Additionally, it changes the type
of some to 'inline' to enable us to simply put them in a header
file and possibly gain some speed due to compiler optimizations.
Signed-off-by: Claudio Freire <klaussfreire@gmail.com >
2015-08-11 00:22:05 -03:00
Michael Niedermayer
8623aba043
doc/codecs: Document color_range for the input side
...
Partly fixes Ticket 443
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-11 03:58:00 +02:00
Michael Niedermayer
55a07cf49c
avformat/ftp: Use av_freep() for dir_buffer
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-10 18:46:38 +02:00
Mariusz Szczepańczyk
ee44cb3c81
lavf/ftp: properly read an empty path
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-10 18:23:40 +02:00
Lukasz Marek
bc93053161
lavf/ftp: implement directory listing callbacks
...
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-10 18:23:35 +02:00
Michael Niedermayer
b26497f824
avcodec/mjpegenc_common: do not ignore the color_range field
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-10 17:48:43 +02:00
Paul B Mahol
7a7ca3cc2f
avfilter/vsrc_testsrc: smpte(hd)bars: fix uninitialized last rows and columns of chroma planes
...
For cases width and/or height is not multiple of chroma subsamplings.
2015-08-10 11:29:39 +02:00
Hendrik Leppkes
10ea06b3bb
Merge commit '5f200bbf98efe50f63d0515b115d2ba8dae297bc'
...
* commit '5f200bbf98efe50f63d0515b115d2ba8dae297bc':
movenc: Place the sidx index after the initial moov/mdat pair
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-10 11:24:30 +02:00
Hendrik Leppkes
7653ebfff6
Merge commit '83f254e65f938657a4dbec711e4c94252a72daf9'
...
* commit '83f254e65f938657a4dbec711e4c94252a72daf9':
movenc: Rename reserved_moov_pos to reserved_header_pos
Conflicts:
libavformat/movenc.c
libavformat/movenc.h
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-10 11:23:21 +02:00
Hendrik Leppkes
6c52432b48
Merge commit '8e34089e265a6b01e1e3301e8864439d26793753'
...
* commit '8e34089e265a6b01e1e3301e8864439d26793753':
movenc: Check that frag_info entries exist in mov_write_sidx_tag
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-10 11:20:09 +02:00
Hendrik Leppkes
e1def4ffec
Merge commit '1542ec96389f32e5081c6c607e4b6f5e257ccdf2'
...
* commit '1542ec96389f32e5081c6c607e4b6f5e257ccdf2':
cosmetics: Drop spurious spaces from if clauses
Conflicts:
libavcodec/vc1_block.c
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-10 11:16:27 +02:00
Hendrik Leppkes
b1d547fe02
Merge commit '0f562f5b833d603e04123d198c59f8b2b5eb43e4'
...
* commit '0f562f5b833d603e04123d198c59f8b2b5eb43e4':
h264: Do not print an error when the buffer has to be refilled
Conflicts:
libavcodec/h264.c
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-10 11:11:42 +02:00
Martin Storsjö
5f200bbf98
movenc: Place the sidx index after the initial moov/mdat pair
...
For fragmented files with non-empty moov, with a fragment index
(sidx), place the index after the initial moov/mdat pair.
Previously, for this pathological case, the index was written
at the start of the file.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-08-10 09:46:14 +03:00
Martin Storsjö
83f254e65f
movenc: Rename reserved_moov_pos to reserved_header_pos
...
The same field is also used for writing the sidx index header,
for fragmented files, when the faststart flag is used.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-08-10 09:46:07 +03:00
Martin Storsjö
8e34089e26
movenc: Check that frag_info entries exist in mov_write_sidx_tag
...
This fixes crashes with pathological cases when trying to write
a sidx index (via the -movflags faststart option, in combination
with fragmenting options), when no fragments actually have been
written. (This is possible if the empty_moov flag isn't used,
so that all actual packet data is written in the moov/mdat pair,
and no moof/mdat pairs have been written.)
In these pathological cases, no sidx should be written at all.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-08-10 09:46:03 +03:00
Michael Niedermayer
46f15de8a4
avformat/gifdec: correct r_frame_rate for single frame gifs
...
Fixes Ticket4650
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-10 04:45:27 +02:00
Michael Niedermayer
8c75a33812
postproc: Deprecate QP_STORE_T, it lacks a PP/AV/FF prefix
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-10 02:33:25 +02:00
Michael Niedermayer
0eb896b38d
Revert "movtextdec: Use default style information from movtext header"
...
The commit broke sub-movtext and sub-subripenc
fate output differs between mips ad x86 so updating fate ref is not
possible
This reverts commit d670848d4c .
2015-08-10 02:09:14 +02:00
Niklesh
d670848d4c
movtextdec: Use default style information from movtext header
...
Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in >
2015-08-09 15:12:15 -07:00
Marton Balint
8628b06b31
ffplay: increase MIN_FRAMES to 25
...
FFplay was using a 5 frame packet buffer, this is not much (e.g. 200 ms for
25fps video), when HLS is requesting a new segment via HTTP, it may take longer
for the request to complete.
Should fix ticket #4720 .
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Marton Balint <cus@passwd.hu >
2015-08-09 23:58:03 +02:00
Marton Balint
0166d329c3
ffplay: add specific constants for buffer fullness settings when using external clock
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2015-08-09 23:57:51 +02:00
周晓勇
7fbafd0b1b
avcodec: loongson optimize h264qpel with mmi v1
...
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-09 20:43:54 +02:00
Michael Niedermayer
0f9d46b70d
swscale/alphablend: Support chroma subsampling
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-09 18:04:46 +02:00
Michael Niedermayer
c5ebeaa308
swscale/alphablend: Support SWS_ALPHA_BLEND_CHECKERBOARD
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-09 17:11:53 +02:00
Michael Niedermayer
87100e828a
swscale/alphablend: Factor target computation out of the loops
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-09 16:09:30 +02:00
Michael Niedermayer
f28ba31b1b
swscale/alphablend: Fix big endian formats on LE
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-09 15:59:12 +02:00
Michael Niedermayer
b7faa9d314
swscale/alphablend: support packed pixel formats
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-09 15:58:43 +02:00
Michael Niedermayer
16df02fd2e
avcodec/snowenc: Avoid use of deprecated me_method
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-09 14:33:31 +02:00
Michael Niedermayer
c64f01227f
swscale/swscale: Document param[0..1]
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-09 14:33:19 +02:00
Andreas Cadhalpun
e66a43f694
graphdump: include internal.h for AVFilterPad
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-08 21:59:21 +02:00
Andreas Cadhalpun
9126ae4b6b
use avfilter_pad_get_{type,name} accessor functions
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-08 21:59:02 +02:00
Andreas Cadhalpun
8bd74aafe8
avfilter: remove obsolete function declarations
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-08 21:58:48 +02:00
Andreas Cadhalpun
2e9c8be834
avcodec: add missing FF_API_CODEC_ID guard
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-08-08 21:58:31 +02:00
Michael Niedermayer
5edab1d207
cmdutils: remove sws_opts usage, simplify code
...
It has become unused as all code was switched to AVDictionary
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-08 16:51:25 +02:00
Michael Niedermayer
408c9cf0e2
cmdutils: Fix overriding flags on the command line.
...
Previously the code just appended the strings of flags which
worked with "+bitexact" but would not work with something like "0"
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-08 14:58:38 +02:00
Michael Niedermayer
6dbaeed6b7
ffmpeg: switch swscale option handling to AVDictionary similar to what the other subsystems use
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-08 14:44:15 +02:00
Michael Niedermayer
d3d776ccf9
avfilter/vf_scale: apply generic options after flags.
...
Otherwise the flags overwrite anything set by the generic stuff to the flags
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-08 14:44:15 +02:00
Michael Niedermayer
e755954a84
ffplay: pass all sws options to the filter graph
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-08 13:25:12 +02:00
Michael Niedermayer
165fb7eba8
cmdutils: Export all sws options using a AVDictionary like the other subsystems do
...
This makes extracting options other than sws_flags easier
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-08 13:24:52 +02:00
Michael Niedermayer
41e733c1ef
avfilter/graphparser: Do not ignore scale_sws_opts if args == NULL
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-08 13:24:52 +02:00
Michael Niedermayer
d0e0757e9a
swscale: Implement alphablendaway for planar 4:4:4 formats
...
Fixes Ticket4746
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-08 13:24:52 +02:00
Michael Niedermayer
c382d9e8cb
swscale: Add sws_alloc_set_opts()
...
This simplifies allocating and initializing swscale contexts with custom options.
The function is internal currently but could be moved into the public header
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-08 13:08:16 +02:00
Carl Eugen Hoyos
7e9cd99627
lavc: The h263 encoder (also) depends on h263data.o
2015-08-08 12:11:33 +02:00
Carl Eugen Hoyos
176698260c
configure: mpegvideo depends on mpeg_er.
...
Fixes compilation with --disable-everything --enable-encoder=mjpeg
While there, clean up some recursive dependencies.
Reported-by: Bernhard Döbler, programmer bardware de
2015-08-08 11:02:25 +02:00
Ludmila Glinskih
8ec89681af
tests/api/api-h264-test: structure changes to avoid duplicate code
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-08 09:53:00 +02:00
Niklesh
ecc806a224
movtextdec: Fix memory leaks by freeing mem allocs correctly
...
Initialize m->count_f to 0 at the correct place to free memory allocs properly.
Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in >
2015-08-07 16:33:31 -07:00
Paolo Bizzarri
1542ec9638
cosmetics: Drop spurious spaces from if clauses
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-08 01:26:38 +02:00
Michael Niedermayer
7d3aa2ca63
avutil/float_dsp: Remove use of deprecated av_set_cpu_flags_mask()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-07 22:46:27 +02:00
Michael Niedermayer
005d006938
avcodec/libopenh264enc: Avoid usage of deprecated ff_alloc_packet()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-07 22:46:27 +02:00
Paul B Mahol
2bdd026b26
avfilter/avf_avectorscope: stop making output fully transparent
2015-08-07 16:44:19 +02:00
Hendrik Leppkes
8015150f43
Merge commit '9469370fb32679352e66826daf77bdd2e6f067b5'
...
* commit '9469370fb32679352e66826daf77bdd2e6f067b5':
h264: Use AVERROR return codes instead of -1
Only partially merged, as the first hunk is not correct and would result
in endless log spam.
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-07 09:54:12 +02:00
Hendrik Leppkes
3d2d672828
Merge commit 'e5997152f54f790229c99f237f8eb6b5b1ee683a'
...
* commit 'e5997152f54f790229c99f237f8eb6b5b1ee683a':
asf: Use time_t where needed
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-07 09:27:55 +02:00
Hendrik Leppkes
b54cf4b886
Merge commit '944f60866f507e3c0850ae9c2f30dac1da54587c'
...
* commit '944f60866f507e3c0850ae9c2f30dac1da54587c':
asfdec: read values properly
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-07 09:27:49 +02:00
Rostislav Pehlivanov
c47c781e83
aacenc: Move local encoder specific tables to a separate file
...
This commit moves any tables specific to the encoder from aacenc
and aaccoder to a separate file called 'aacenctab.c/.h'.
This was done as a clean up attempt as the encoder was filled with
tables pasted in between functions which made it confusing to follow
and track where each table and definition had been used.
This commit solves this by simply exporting the smaller tables out to
the aacenctab.h while the larger ones are compiled using aacenctab.c
and are referenced from the header file.
Signed-off-by: Claudio Freire <klaussfreire@gmail.com >
2015-08-07 03:58:07 -03:00
James Almer
9c0407e856
x86/sbrdsp: remove an unnecessary mova in sbr_autocorrelate
...
Signed-off-by: James Almer <jamrial@gmail.com >
2015-08-06 23:42:19 -03:00
Michael Niedermayer
bee2e702cc
tests/fate/mp3: increase mp3-float-extra_overread FUZZ for ppc64be-RHEL7.0-gcc-4.8.2-ibmcrl to 23 from 20
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-07 02:54:59 +02:00
Michael Niedermayer
ae413a48e6
avcodec/movtextdec: check that ftab has been allocated before dereferencing it
...
Fixes potential null pointer dereference on deallocation
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-06 23:38:55 +02:00
Niklesh
2e7a684e72
movtextdec.c: Add support for font names
...
Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in >
2015-08-06 08:42:09 -07:00
wm4
8024002d40
vc1dec: propagate error codes and return meaningful error codes
2015-08-06 15:27:19 +02:00
Paul B Mahol
40ddbc87c5
avfilter/avf_showspectrum: use av_calloc()
2015-08-06 15:06:14 +02:00
Michael Niedermayer
cb5190bc9d
avcodec/diracdec: Move reference to DiracFrame, avoid use of the deprecated field from AVFrame
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-06 12:44:37 +02:00
Michael Niedermayer
a368920eef
avcodec/options: Silence deprecated warning about coded_frame
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-06 12:39:37 +02:00
Luca Barbato
0f562f5b83
h264: Do not print an error when the buffer has to be refilled
...
Partially amends 9469370fb3
2015-08-06 11:55:48 +02:00
wm4
94c0df79c7
lavc: propagate hwaccel errors
...
At least the new videotoolbox decoder does not actually set a frame if
end_frame fails. This causes the API to return success and signals that
a picture was decoded, even though AVFrame->data[0] is NULL.
Fix this by propagating end_frame errors.
2015-08-06 11:05:02 +02:00
Michael Niedermayer
ace8376653
avformat/matroskaenc: Avoid "for (int i" syntax for better compatibility
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-06 01:15:08 +02:00
Henrik Gramner
5e8e121fcc
checkasm: Remove unnecessary include
2015-08-05 23:21:28 +02:00
周晓勇
71575d98f5
avcodec: loongson optimized h264pred with mmi v2
...
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-05 22:52:52 +02:00
Sasi Inguva
31852540d4
libavformat/matroska: Write stream durations in metadata, in the format of mkvmerge.
...
Compute individual stream durations in matroska muxer.
Write them as string tags in the same format as mkvmerge tool does.
Signed-off-by: Sasi Inguva <isasi@google.com >
2015-08-05 22:29:23 +02:00
Marton Balint
b1f78632c6
ffplay: do not block audio thread on WIN32
...
The windows SDL audio driver plays the old data in the buffer in a loop if it
is not updated in time. So instead of waiting for data and blocking the the
audio thread, return silence if no data is available.
Should fix ticket #2289 .
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: Marton Balint <cus@passwd.hu >
2015-08-05 21:09:30 +02:00
Anton Mitrofanov
8db0f71b49
x86inc: warn if XOP integer FMA instruction emulation is impossible
...
Signed-off-by: Henrik Gramner <henrik@gramner.com >
2015-08-05 16:15:40 +02:00
Michael Niedermayer
e740659a5d
avcodec/avcodec: Define CODEC_CAP_* based on AV_CODEC_CAP_*
...
Avoid duplicating the literal numeric values
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-05 15:45:50 +02:00
Michael Niedermayer
4ab1f33daf
avcodec/avcodec: Replace AV_CODEC_FLAG* values by 1 << C style for consistency
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-05 15:45:50 +02:00
Michael Niedermayer
500bfbe27a
avcodec/hapenc: Remove use of deprecated ff_alloc_packet()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-05 15:45:50 +02:00
Ronald S. Bultje
22b30f925d
vf_psnr: add psnr_avg to stats file.
2015-08-05 09:19:09 -04:00
Hendrik Leppkes
45d9d16863
Merge commit 'b197f78329615893201c0e241d00b71b7c749dbb'
...
* commit 'b197f78329615893201c0e241d00b71b7c749dbb':
configure: Silence error messages when probing compiler
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-05 12:19:07 +02:00
Hendrik Leppkes
7e2717ba3c
Merge commit '98c9ade9853a9c413534ef243174d65f3f7506fa'
...
* commit '98c9ade9853a9c413534ef243174d65f3f7506fa':
drawtext: Move the strftime expansion in a separate function
Not merged, the code does not exist anymore.
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-05 12:18:31 +02:00
Hendrik Leppkes
4eded225ad
Merge commit 'fe026ba960790a004adfcff33f44f96b05538e5c'
...
* commit 'fe026ba960790a004adfcff33f44f96b05538e5c':
drawtext: Drop stray guards
Conflicts:
libavfilter/vf_drawtext.c
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-05 12:15:41 +02:00
Hendrik Leppkes
00b5c19661
Merge commit '4fee11ab05fc8569ef35c0ce86a60375c903eefb'
...
* commit '4fee11ab05fc8569ef35c0ce86a60375c903eefb':
png: Be more informative regarding signature errors
Conflicts:
libavcodec/pngdec.c
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-05 12:10:08 +02:00
Jake Sebastian-Jones
9469370fb3
h264: Use AVERROR return codes instead of -1
...
And report why it fails.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-05 11:40:30 +02:00
Michael Niedermayer
e5774f28d1
avcodec/dvbsubdec: Do not stop decoding at a invalid depth
...
This corrects parsing the later elements
Fixes Ticket4754
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-05 00:16:43 +02:00
Luca Barbato
e5997152f5
asf: Use time_t where needed
...
gmtime takes a time_t not an uint64_t.
2015-08-04 21:40:04 +02:00
Timo Rothenpieler
2ae45816b2
avcodec/nvenc: Add support for 2pass rc in vbr mode
...
Thanks to WereCatf for pointing out this now exists.
Github: Closes #143
2015-08-04 21:38:10 +02:00
Timo Rothenpieler
3a20e5bc3b
avcodec/nvenc: Only set h264 parameter when encoding h264
2015-08-04 21:38:10 +02:00
Timo Rothenpieler
bef740688d
avcodec/nvenc: Fix indentation
2015-08-04 21:38:10 +02:00
Hendrik Leppkes
bec062e57c
wmv2enc: remove duplicate priv_class in codec definition
2015-08-04 21:35:54 +02:00
Carl Eugen Hoyos
128e722bc1
lavf/swf: Fix auto-detection of compressed files.
...
Fixes auto-detection of compressed swf files as in
http://samples.ffmpeg.org/SWF/compressed-swf/
Reported by forum user Zard1096.
2015-08-04 21:34:00 +02:00
Alexandra Hájková
944f60866f
asfdec: read values properly
...
The length of BOOL values is 16 bits in the Metadata Object but
32 bits in the Extended Content Description Object.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-04 21:33:55 +02:00
Henrik Gramner
f0b7882ceb
x86inc: Drop SECTION_TEXT macro
...
The .text section is already 16-byte aligned by default on all supported
platforms so `SECTION_TEXT` isn't any different from `SECTION .text`.
2015-08-04 20:13:09 +02:00
Henrik Gramner
826790f596
x86inc: Support arbitrary stack alignments
...
Change ALLOC_STACK to always align the stack before allocating stack space for
consistency. Previously alignment would occur either before or after allocating
stack space depending on whether manual alignment was required or not.
2015-08-04 20:13:09 +02:00
Hendrik Leppkes
99f8fc725d
ffmpeg: remove access to private FILE struct members on Windows
...
The FILE struct is opaque in MSVC 2015, and the members of this struct
were never meant to be accessed in any case.
No conditions are known where this check was needed to get characters
from stdin.
2015-08-04 20:05:18 +02:00
Hendrik Leppkes
2ab5002e3c
ffmpeg: avoid scanf in keyboard command parsing
...
Mixing stdio and low-level IO on stdin is not safe.
2015-08-04 20:04:53 +02:00
Philip Langdale
3c8652208b
MAINTAINERS: Add myself to vdpau maintainers
2015-08-04 08:22:19 -07:00
Philip Langdale
f038bbd4ed
avcodec/vdpau_hevc: Properly signal the num_delta_pocs from the SPS RPS
...
This is the same fix that Hendrik made to dxva2_hevc. It should be
equally required here, although I don't see any visual difference.
Nevertheless, best to stay consistent.
2015-08-04 08:22:19 -07:00
Philip Langdale
aa10f0aab0
avcodec/vdpau_hevc: Remove experimental flag
...
The latest nvidia 355.06 drivers fixes the interleaving bug when
video surfaces are rendered. It still seems to be broken for
read-back with getBits but that's sufficiently uninteresting that
I don't think we need to wait for it to remove the flag.
2015-08-04 08:22:19 -07:00
Shivraj Patil
dec16372df
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for VP8 functions
...
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
2015-08-04 11:15:06 -04:00
Paul B Mahol
63c442e3b1
avfilter/avf_showspectrum: reindent
2015-08-04 15:18:51 +02:00
Carl Eugen Hoyos
087c0a0a93
lavc/dvbsub: Do not fail on clut depth 0.
...
Fixes ticket #4752 .
2015-08-04 15:01:22 +02:00
Carl Eugen Hoyos
4c4f14c717
lavd/v4l2: Use AVSTREAM_PARSE_FULL_ONCE when reading a h264 stream.
...
Reported, debugged and tested by trac user noah.
Fixes ticket #4644 .
2015-08-04 14:59:26 +02:00
Michael Niedermayer
3f87a17063
avcodec/dvbsubdec: Allow selecting the substream, or all substreams
...
Fixes Ticket 2161
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-04 14:24:13 +02:00
Matthieu Bouron
f6518e51b8
lavf/mxfdec: support segmented frame layout as separate fields layout
...
According to S377M, segmented frame layout is identical to separate
field layout except that the two fields are taken from a single scan
of the incoming image, ie: they are coincident in time. Thus the
resulting frame is progressive.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-04 13:03:29 +02:00
Shiz
b197f78329
configure: Silence error messages when probing compiler
...
On Xcode's clang on OS X, $cc --version will output a 'Configured with:'
line to stderr, which clobbers the configure script output. As this line
serves no further purpose, it should be silenced.
The same applies to apple-gcc 4.2.1, which complains that it can not
understand the kernel version it is running on.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-04 12:19:27 +02:00
Shiz
2480da12a4
configure: Silence error messages when probing compiler.
...
On Xcode's clang on OS X, $cc --version will output a 'Configured with:'
line to stderr, which clobbers the configure script output. As this line
serves no further purpose, it should be silenced.
The same applies to apple-gcc 4.2.1, which complains that it can not
understand the kernel version it is running on.
Reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-04 11:00:54 +02:00
Michael Niedermayer
e322b7061f
avcodec/dcaenc: clear bitstream end
...
This avoids leaving uninitialized bits in the output
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-04 04:16:43 +02:00
Michael Niedermayer
d903b62750
avcodec/internal: improve min_size documentation for ff_alloc_packet2()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-04 04:16:43 +02:00
James Almer
5750d6c5e9
x86: move XOP emulation code back to x86inc
...
Only two functions that use xop multiply-accumulate instructions where the
first operand is the same as the fourth actually took advantage of the macros.
This further reduces differences with x264's x86inc.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-08-03 17:11:13 -03:00
Michael Niedermayer
2ca0ed9cfd
doc/git-howto: Replace "git push" example by one with dry-run
...
I do not think having "git push" as example is a good idea.
The command has a very high chance of pushing things which are unwanted to be
pushed
Reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-03 19:33:46 +02:00
Hendrik Leppkes
5d324dae11
dxva2_hevc: properly signal the num_delta_pocs from the SPS RPS
...
ucNumDeltaPocsOfRefRpsIdx needs to contain the flat value from the SPS RPS,
and not the final computed value from the slice header RPS, as this calculation
is done internally by the driver again.
Sample-Id: http://trailers.divx.com/hevc/Sintel_4k_27qp_24fps_1aud_9subs.mkvi
2015-08-03 15:48:21 +02:00
Michael Niedermayer
8bdd0dbd60
avcodec/videotoolbox: Add missing AV_ prefix to CODEC_ID in comment
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-03 14:47:11 +02:00
Michael Niedermayer
6b0fa73b4d
avcodec/videotoolbox: Fix bistream typo
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-03 14:46:24 +02:00
Michael Niedermayer
4302a92835
avcodec/pcm: Better min_size for ff_alloc_packet2()
...
33318 -> 30601 decicycles
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-03 14:31:03 +02:00
Michael Niedermayer
fdc2385ca9
avcodec/libwebpenc_animencoder: Use ff_alloc_packet2()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-03 14:31:03 +02:00
Michael Niedermayer
77fb14f039
avcodec/rawenc: Use ff_alloc_packet2()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-03 14:31:03 +02:00
Sebastien Zwickert
11d923d414
avcodec: add new Videotoolbox hwaccel.
2015-08-03 10:12:10 +02:00
Henrik Gramner
127203ba5a
x86inc: Various minor backports from x264
...
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-03 04:08:33 +02:00
Henrik Gramner
f151fbd9e5
x86inc: Disable vpbroadcastq workaround in newer yasm versions
...
The bug was fixed in 1.3.0, so only perform the workaround in earlier versions.
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-03 03:13:20 +02:00
Michael Niedermayer
7f46a641bf
avcodec/aacdec: Fix integer overflow in argument to decode_audio_specific_config()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-03 01:41:13 +02:00
Emanuel Czirai
7ab1c57a64
libavcodec/aacdec_template: Use init_get_bits8() in aac_decode_frame()
...
related to ticket4749
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-03 01:18:33 +02:00
Michael Niedermayer
0508657f42
avcodec/cngenc: Use ff_alloc_packet2()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-02 23:02:12 +02:00
Michael Niedermayer
7e9cd4e100
avcodec/libwebpenc: Use ff_alloc_packet2()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-02 20:58:31 +02:00
Michael Niedermayer
06f2659891
avcodec/v210enc: Use ff_alloc_packet2()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-02 20:57:39 +02:00
Michael Niedermayer
107026ea81
avcodec/aliaspixenc: Use ff_alloc_packet2()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-02 20:36:24 +02:00
Michael Niedermayer
4a8ec0218e
avcodec/avuienc: Use ff_alloc_packet2()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-02 20:24:30 +02:00
Rico Tzschichholz
a0044becca
libshine: Fix faulty ff_alloc_packet2 usage
2015-08-02 19:05:26 +02:00
Paul B Mahol
3fe01eca21
avcodec/xfaceenc: remove coded_frame usage
2015-08-02 18:41:12 +02:00
Paul B Mahol
5b69fb783e
avfilter: add atadenoise
2015-08-02 18:19:19 +02:00
Luca Barbato
98c9ade985
drawtext: Move the strftime expansion in a separate function
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-02 15:18:48 +02:00
Luca Barbato
fe026ba960
drawtext: Drop stray guards
...
There is a fallback for localtime_r and it is in use already.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-02 15:14:33 +02:00
Luca Barbato
4fee11ab05
png: Be more informative regarding signature errors
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-02 14:31:09 +02:00
Paul B Mahol
49a14a7616
avfilter: add allyuv source filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-08-02 14:13:59 +02:00
Paul B Mahol
ff6c92447d
avfilter/vf_deband: add mising slice thread flag
2015-08-02 14:00:34 +02:00
Paul B Mahol
ff8f6691ce
avfilter/f_drawgraph: stop making foreground color transparent
2015-08-02 13:34:30 +02:00
Hendrik Leppkes
a95210bfbd
MAINTAINERS: Add myself as maintainer for dxva2 and Windows/MSVC
2015-08-02 13:03:48 +02:00
Michael Niedermayer
8b11ce7137
avcodec/libutvideoenc: Remove coded_frame usage
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-02 12:49:49 +02:00
Hendrik Leppkes
9f56aceaec
Merge commit '14e558024642638085ae2bbeffc6087612e6a3f9'
...
* commit '14e558024642638085ae2bbeffc6087612e6a3f9':
opusdec: properly handle mismatching configurations in multichannel streams
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 12:40:53 +02:00
Hendrik Leppkes
190e521123
Merge commit 'fdbc544d29176ba69d67dd879df4696f0a19052e'
...
* commit 'fdbc544d29176ba69d67dd879df4696f0a19052e':
asfdec: prevent the memory leak while reading metadata
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 12:32:10 +02:00
Hendrik Leppkes
1ce298dac5
Merge commit 'ebaf571aca2dd6ce3caeeeec4210a3fccd47e7db'
...
* commit 'ebaf571aca2dd6ce3caeeeec4210a3fccd47e7db':
x86: dct: Disable dct32_float_sse on x86-64
Conflicts:
libavcodec/x86/dct32.asm
libavcodec/x86/dct_init.c
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 12:31:39 +02:00
Hendrik Leppkes
b3e5d59537
Merge commit '979cb55103fa8e8274806e496901203742c686d1'
...
* commit '979cb55103fa8e8274806e496901203742c686d1':
hevc: Split the sei parsing in 3 functions
Conflicts:
libavcodec/hevc_sei.c
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 12:29:30 +02:00
Hendrik Leppkes
90ec89a629
Merge commit '043f46f5741e1a5caedf55d788e1a72aae3b7605'
...
* commit '043f46f5741e1a5caedf55d788e1a72aae3b7605':
hevc: Use switch instead of if-nests in decode_nal_sei_message
Conflicts:
libavcodec/hevc_sei.c
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 12:25:41 +02:00
Hendrik Leppkes
2e290d6114
Merge commit '2cd841c0776535be56e4db67485fdd9509c9b9f4'
...
* commit '2cd841c0776535be56e4db67485fdd9509c9b9f4':
hevc: Use a proper enum for the SEI values
Conflicts:
libavcodec/hevc_sei.c
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 12:18:40 +02:00
Michael Niedermayer
582d98aed9
tests/fate/mp3: Fix fate-mp3-float-extra_overread on mips-qemu
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-02 11:26:58 +02:00
Hendrik Leppkes
db395bef7f
Merge commit '80ea66112817c719b476de8f7d8d3b325f4c7dd1'
...
* commit '80ea66112817c719b476de8f7d8d3b325f4c7dd1':
avcodec: h264: Extract decoder methods
Conflicts:
libavcodec/h264_sei.c
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:59:06 +02:00
Hendrik Leppkes
2ab827389b
Merge commit '33dc1913ab7aaefc991b3e665d1d0b5d0b088672'
...
* commit '33dc1913ab7aaefc991b3e665d1d0b5d0b088672':
asfdec: remove improper assignement that caused wrong timestamps
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:41:56 +02:00
Hendrik Leppkes
07094e5e40
Merge commit '78491fe8cfed83d2aead95dafe26f0d3f999e961'
...
* commit '78491fe8cfed83d2aead95dafe26f0d3f999e961':
asfdec: do not export empty metadata
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:41:45 +02:00
Hendrik Leppkes
d95fee4425
Merge commit '3e853ff7acc56b180950ab39e7282f1b938c8784'
...
* commit '3e853ff7acc56b180950ab39e7282f1b938c8784':
des: extend av_des_init() doxy
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:41:26 +02:00
Hendrik Leppkes
3cf08e96fc
Merge commit 'd9e8b47e3144262d6bc4681740411d4bdafad6ac'
...
* commit 'd9e8b47e3144262d6bc4681740411d4bdafad6ac':
des: add av_des_alloc()
Conflicts:
libavutil/des.c
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:41:16 +02:00
Hendrik Leppkes
9ca19971bc
Merge commit '5d8bea3bb2357bb304f8f771a4107039037c5549'
...
* commit '5d8bea3bb2357bb304f8f771a4107039037c5549':
xtea: add av_xtea_alloc()
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:39:37 +02:00
Hendrik Leppkes
52566efd5c
Merge commit 'b469832de993dabbfe037bef59c68e90e82ebca5'
...
* commit 'b469832de993dabbfe037bef59c68e90e82ebca5':
rc4: extend av_rc4_init() doxy
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:38:53 +02:00
Hendrik Leppkes
a130ec9540
Merge commit 'ae365453c370c85f278bff7fbf9e20d9d335cb2a'
...
* commit 'ae365453c370c85f278bff7fbf9e20d9d335cb2a':
rc4: add av_rc4_alloc()
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:38:33 +02:00
Hendrik Leppkes
9ed59f16e0
Merge commit '7a7df34c91e16ea8936f59524145a2cdd6b790f9'
...
* commit '7a7df34c91e16ea8936f59524145a2cdd6b790f9':
blowfish: add av_blowfish_alloc()
Conflicts:
doc/APIchanges
libavutil/version.h
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:38:12 +02:00
Hendrik Leppkes
988ddfea5e
Merge commit 'cd4d9df22738e6f147521ccb72c7930db6050914'
...
* commit 'cd4d9df22738e6f147521ccb72c7930db6050914':
asfdec: free AVDictionaries properly when closing the demuxer
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:34:18 +02:00
Hendrik Leppkes
cf1ccfffa4
Merge commit '90e648c508fa6b97587ce62699a1449123f7d285'
...
* commit '90e648c508fa6b97587ce62699a1449123f7d285':
fate/mp3: use the f32le format as output
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2015-08-02 10:32:38 +02:00
Anton Khirnov
14e5580246
opusdec: properly handle mismatching configurations in multichannel streams
...
The substreams can have different resampling delays, so an additional
level of buffering is needed to synchronize them.
Bug-Id: 876
2015-08-02 08:43:51 +02:00
Alexandra Hájková
fdbc544d29
asfdec: prevent the memory leak while reading metadata
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-02 08:43:51 +02:00
Henrik Gramner
ebaf571aca
x86: dct: Disable dct32_float_sse on x86-64
...
There is an SSE2 implementation so the SSE version is never used. The "SSE"
version also happens to contain SSE2 instructions on x86-64.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-08-02 08:41:45 +02:00
Michael Niedermayer
f080a01fd3
avcodec/hevc_mp4toannexb_bsf: Remove ;;
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-02 03:52:37 +02:00
Vesselin Bontchev
336822edf4
avformat/mov: fix regression in processing .aax files
...
Commit 0a551cbe introduced "activation_bytes" option, and not specifying
this option (while calling ffmpeg / ffprobe) causes the program to quit
early. Before this commit, ffprobe was capable of processing metadata in
.aax files.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-02 03:40:38 +02:00
Paul B Mahol
5bf8590d6e
avfilter/avf_showvolume: stop making output fully transparent
2015-08-01 19:40:34 +02:00
Rostislav Pehlivanov
ec2090d21f
aacenc: add description to the 'aac_coder' option
...
This commit adds a short description to the aac_coder option of the
AAC encoder in order to be consistent with the other options.
Generally, right now, the 'FAAC' method works fine with speech and
low broadband spectrum audio. 'Fast' is just as the name suggests.
'ANMR' still needs work and 'Twoloop', the default, works well with
every type of audio.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com >
2015-08-01 17:40:30 +01:00
Luca Barbato
979cb55103
hevc: Split the sei parsing in 3 functions
2015-08-01 15:45:50 +02:00
Luca Barbato
043f46f574
hevc: Use switch instead of if-nests in decode_nal_sei_message
...
Makes simpler to add support for more SEI types.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-01 15:34:45 +02:00
Luca Barbato
2cd841c077
hevc: Use a proper enum for the SEI values
...
And use the correct value for decoded_picture_hash.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-01 15:23:05 +02:00
David Holm
80ea661128
avcodec: h264: Extract decoder methods
...
Extract two methods from decode_registered_user_data in order to improve
code readability. Also make the constant holding the allocation size a
64-bit unsigned integer so that the size comparison against INT_MAX makes
sense.
Bug-Id: CID1312090
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-08-01 14:29:53 +02:00
Michael Niedermayer
b27d4fd997
Revert "libavcodec/utils: av_get_exact_bits_per_sample fixed to return "1" for DSD codecs."
...
Requested-by: Ganesh Ajjanagadde <gajjanag@mit.edu > (original patch reviewer)
This reverts commit 293e25be61 .
2015-08-01 03:25:04 +02:00
Michael Niedermayer
55ea31ab89
Merge branch 'simple_http_server_api_implementation' of http://git.klaxa.eu/git/ffmpeg
...
Reviewed-by: Nicolas George <george@nsup.org >
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-01 03:08:04 +02:00
Rostislav Pehlivanov
6d175158e9
aacenc: remove redundant argument from coder functions
...
This commit removes a redundant argument from the functions in aaccoder.
The argument lambda was redundant as it was just a copy of s->lambda,
to which all functions have access to anyway. This cleans up the function
pointers a bit which is helpful as there are a lot of other search_for_*
functions under development and with them populated it gets messy.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-01 02:54:35 +02:00
Yu Xiaolei
2ef6994ef6
avcodec/libx264: expose nv21 input support
...
libx264 added support for NV21 input recently.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-01 02:14:18 +02:00
Ihar A. Tumashyk
293e25be61
libavcodec/utils: av_get_exact_bits_per_sample fixed to return "1" for DSD codecs.
...
All DSD codes have 1 bit per sample.
https://en.wikipedia.org/wiki/Direct_Stream_Digital
Signed-off-by: Ihar A. Tumashyk <itumashyk@gmail.com >
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-01 01:49:21 +02:00
Stephan Holljes
25410c524d
doc/example: Add http multi-client example code
...
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com >
2015-08-01 00:58:32 +02:00
Stephan Holljes
1d46e0ee05
doc/protocols: document experimental mutli-client api
...
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com >
2015-08-01 00:58:31 +02:00
Stephan Holljes
3240e69de6
lavf/http: Implement server side network code.
...
add http_accept,
add http_handshake and move handshake logic there,
handle connection closing.
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com >
2015-08-01 00:58:31 +02:00
Stephan Holljes
75235a2550
lavf/tcp: increase range for listen and call the underlying socket operations accordingly
...
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com >
2015-08-01 00:58:31 +02:00
Stephan Holljes
21198155a7
lavf/tcp: add tcp_accept
...
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com >
2015-08-01 00:58:31 +02:00
Stephan Holljes
63c07a956b
lavf/avio: add avio_accept and avio_handshake
...
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com >
2015-08-01 00:58:31 +02:00
Stephan Holljes
5125e4b53f
lavf/avio: add ffurl_accept and ffurl_handshake
...
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com >
2015-08-01 00:58:31 +02:00
Stephan Holljes
cf6c871bee
lavf/network: split ff_listen_bind into ff_listen and ff_accept
...
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com >
2015-08-01 00:58:31 +02:00
Paul B Mahol
5870b3d2a3
MAINTAINERS: update my maintership
2015-07-31 20:25:07 +02:00
rogerdpack
bed1d9ec7a
dshow: show more debug timestamp info
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
2015-07-31 18:30:03 +02:00
Michael Niedermayer
f2c58931e6
MAINTAINERS: Remove myself as leader
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-31 15:55:20 +02:00
Michael Niedermayer
814d4c4c94
Merge commit 'a0797950527120c85263c910eb6ba08fddcfdcb3'
...
* commit 'a0797950527120c85263c910eb6ba08fddcfdcb3':
fate/mp3: specify the number of output samples instead of filesize
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-31 11:56:42 +02:00
Alexandra Hájková
33dc1913ab
asfdec: remove improper assignement that caused wrong timestamps
...
and remove unneeded variable
Sample-Id: https://samples.libav.org/asf-wmv/asf-code-53/movn018.asf
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-31 09:10:05 +02:00
Alexandra Hájková
78491fe8cf
asfdec: do not export empty metadata
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-31 09:09:27 +02:00
James Almer
3e853ff7ac
des: extend av_des_init() doxy
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-31 09:04:12 +02:00
James Almer
d9e8b47e31
des: add av_des_alloc()
...
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-31 09:04:12 +02:00
James Almer
5d8bea3bb2
xtea: add av_xtea_alloc()
...
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-31 09:04:12 +02:00
James Almer
b469832de9
rc4: extend av_rc4_init() doxy
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-31 09:04:12 +02:00
James Almer
ae365453c3
rc4: add av_rc4_alloc()
...
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-31 09:04:12 +02:00
James Almer
7a7df34c91
blowfish: add av_blowfish_alloc()
...
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-31 09:04:09 +02:00
Alexandra Hájková
cd4d9df227
asfdec: free AVDictionaries properly when closing the demuxer
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-31 07:23:20 +02:00
Anton Khirnov
90e648c508
fate/mp3: use the f32le format as output
...
Those tests test the float decoder, so it is preferable to dump the
decoder output directly instead of converting it to s16.
2015-07-31 07:11:35 +02:00
Anton Khirnov
a079795052
fate/mp3: specify the number of output samples instead of filesize
...
This is not dependent on the output format.
2015-07-31 07:11:34 +02:00
Ganesh Ajjanagadde
c1bfb99ff2
avformat/wavdec: add extra sample count check for G.729 files
...
Can be used to fix Ticket4577
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-31 03:17:55 +02:00
James Almer
a0092cea46
mips/hevcdsp: fix string concatenation on macros
...
Needed for old compilers like GCC 4.2
Tested by trac user brad. Fixes ticket #4745
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-30 20:44:32 -03:00
James Almer
9dcaae70f2
x86/aacpsdsp: add SSE and SSE3 optimized functions
...
Between 1.5 and 2.5 times faster
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-30 19:01:15 -03:00
Michael Niedermayer
d2077c860e
Revert "ffmpeg: modify tty state when stderr is redirected"
...
faults in fate otherwise breaks the terminal.
To reproduce, add a abort() into wav_read_header()
run make fate-acodec-adpcm-ima_wav
This reverts commit 92e62f49cf .
2015-07-30 23:49:54 +02:00
Michael Niedermayer
802e51299e
avcodec/r210enc: Drop coded_frame usage
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 19:57:58 +02:00
Michael Niedermayer
dfe8e3b381
avcodec/avuienc: Drop coded_frame usage
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 19:57:07 +02:00
Michael Niedermayer
bc4bdc6d61
Merge commit '764ec70149728be82304c163ccc4e280f1629201'
...
* commit '764ec70149728be82304c163ccc4e280f1629201':
rtsp: Only interpret $ as interleaved packet indicator at the start of replies
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 18:37:37 +02:00
Michael Niedermayer
d560c61125
Merge commit '6877537ff321136cf78ab03b8b91e6b6f218db5b'
...
* commit '6877537ff321136cf78ab03b8b91e6b6f218db5b':
hmac: add missing version bump and APIChanges entry
Conflicts:
libavutil/version.h
version.h is not changed as the code has been added 2 years ago in FFmpeg
See: 82ef67016e
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 18:37:05 +02:00
Michael Niedermayer
ba12ba859a
Merge commit '0c73a5a53cc97f4291bbe9e1e68226edf6161744'
...
* commit '0c73a5a53cc97f4291bbe9e1e68226edf6161744':
hls: Save and forward avio options
Conflicts:
libavformat/hls.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 17:52:23 +02:00
Michael Niedermayer
8e67599505
Merge commit '5ae178539b91d25710b7bb322d156c31aea9f8bf'
...
* commit '5ae178539b91d25710b7bb322d156c31aea9f8bf':
http: Add the trailing endlines if they are missing
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 16:24:03 +02:00
Michael Niedermayer
77d8fd5c9c
avcodec/y41penc: Drop coded_frame usage
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 16:14:23 +02:00
Michael Niedermayer
9ebffc5bba
avcodec/yuv4enc: drop coded_frame usage
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 16:14:06 +02:00
Martin Storsjö
764ec70149
rtsp: Only interpret $ as interleaved packet indicator at the start of replies
...
Allow $ as character anywhere within normal RTSP replies - both
within the lines, and as the first character of RTSP header lines.
(The existing old comment indicated that an inline packet could
start at any line within a RTSP reply header, but that doesn't
sound valid to me, and I'm not sure if the existing code
handled that correctly either.)
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-30 16:59:36 +03:00
Michael Niedermayer
a0123b6023
avcodec/v308enc: Remove coded_frame usage
...
coded_frame is deprecated
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 15:54:45 +02:00
Michael Niedermayer
2d80de0be2
avcodec/v408enc: remove coded_frame usage
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 15:53:54 +02:00
James Almer
6877537ff3
hmac: add missing version bump and APIChanges entry
...
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-30 16:40:26 +03:00
Ganesh Ajjanagadde
92e62f49cf
ffmpeg: modify tty state when stderr is redirected
...
This fixes Ticket2964
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 14:31:26 +02:00
Michael Niedermayer
1919827f2c
Merge commit 'bf0cef5c3a114df452e5476167634dd8f51eb448'
...
* commit 'bf0cef5c3a114df452e5476167634dd8f51eb448':
checkasm: Include io.h for isatty, if available
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 12:23:54 +02:00
Michael Niedermayer
dd0dbaccb7
Merge commit '9487ffd4c02b9e261562d43735490068c0df0d4b'
...
* commit '9487ffd4c02b9e261562d43735490068c0df0d4b':
rtmpproto: free hmac context properly
See: 6ce3d9fc4a
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 12:14:54 +02:00
Luca Barbato
0c73a5a53c
hls: Save and forward avio options
...
Make possible to send the custom headers and override the user agent.
Reported-by: BenWonder
2015-07-30 11:21:26 +02:00
Luca Barbato
5ae178539b
http: Add the trailing endlines if they are missing
...
Makes slightly easier the life of those want to use the option
from the command line
2015-07-30 11:21:26 +02:00
Martin Storsjö
bf0cef5c3a
checkasm: Include io.h for isatty, if available
...
configure does check for isatty, and checkasm properly checks
HAVE_ISATTY, but on some platforms (e.g. WinRT), io.h needs to be
included for isatty to be available.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-30 09:27:09 +03:00
James Almer
9487ffd4c0
rtmpproto: free hmac context properly
...
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-30 09:26:49 +03:00
Michael Niedermayer
f977e69dac
avcodec/mpegvideo_enc: Ignore QMAX if VBV constraints are exceeded
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 05:00:54 +02:00
Michael Niedermayer
bf2474c74f
avcodec/mpeg12enc: extend QP range to 28 for non linear quantizers
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 05:00:54 +02:00
James Zern
9723d439fd
libvpxenc: report pict_type/error via side-data
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Zern <jzern@google.com >
2015-07-29 19:59:20 -07:00
James Zern
88df16fe6d
libvpxenc: quiet coded_frame deprecation warnings
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Zern <jzern@google.com >
2015-07-29 19:59:19 -07:00
James Almer
6ce3d9fc4a
avformat/rtmpproto: free hmac context properly
...
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-29 23:56:22 -03:00
James Almer
222d7619ce
avfilter/vf_pnsr: fix author name
...
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-29 22:28:09 -03:00
Michael Niedermayer
363995296f
doc/APIchanges: fill in some missing things
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 03:09:04 +02:00
James Almer
bc397246aa
avutil/hmac: fix API/ABI compatibility with the fork
...
The test code is updated with some cosmetics to avoid the loop
using undefined AVHMACType values.
The old enum values will be removed in the next major bump, effectively
making both projects synced and without API or ABI issues.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-29 21:32:05 -03:00
Michael Niedermayer
15a7a3cf0a
Merge commit '65dd6a1f84cc5c9a91d279e8e8b72ff7adf58d31'
...
* commit '65dd6a1f84cc5c9a91d279e8e8b72ff7adf58d31':
rtmpproto: use AVHMAC instead of a custom implementation
See: 6c87b86628
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 01:36:28 +02:00
Michael Niedermayer
277a5005b7
Merge commit 'e59f7cd89e7f4f096f8456d63191adec2f8b1083'
...
* commit 'e59f7cd89e7f4f096f8456d63191adec2f8b1083':
fate: add test vectors for HMAC SHA and SHA-2
Conflicts:
libavutil/hmac.c
tests/ref/fate/hmac
See: 1163910a00
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 01:28:00 +02:00
Michael Niedermayer
8c5cc7b7fb
avutil/hmac: support another ABI difference to the fork
...
spotted this and so adding it.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 01:25:05 +02:00
Michael Niedermayer
865564c466
Merge commit '7e38340b831af8e3271f22bd66b9da14953c02af'
...
* commit '7e38340b831af8e3271f22bd66b9da14953c02af':
hmac: add support for SHA-2
Conflicts:
libavutil/hmac.c
libavutil/hmac.h
See: 82ef67016e
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 00:24:41 +02:00
wm4
4c6beaed92
rawdec: fix mjpeg probing buffer size check
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-30 00:06:15 +02:00
wm4
bf51fcd304
rawdec: fix mjpeg probing
...
There can be other headers than "Content-Type:" (in this case, a
"Content-Length:" header was following), so checking for a trailing
newline is wrong.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 23:50:46 +02:00
Michael Niedermayer
f8b81a02c9
avformat/oggdec: ogg_read_seek: reset ogg after seeking
...
Fixes Ticket4743
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 23:22:12 +02:00
James Almer
65dd6a1f84
rtmpproto: use AVHMAC instead of a custom implementation
...
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-29 22:09:16 +03:00
James Almer
e59f7cd89e
fate: add test vectors for HMAC SHA and SHA-2
...
Also replace custom tests for MD5 with those published in RFC 2202
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-29 22:09:16 +03:00
James Almer
7e38340b83
hmac: add support for SHA-2
...
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-29 22:09:16 +03:00
James Almer
6c87b86628
avformat/rtmpproto: use AVHMAC instead of a custom implementation
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-29 15:32:08 -03:00
Michael Niedermayer
0949869e7b
ffmpeg_op: Print warning if duration isnt known when -sseof is used
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 18:58:57 +02:00
Michael Niedermayer
42209eb955
doc/ffmpeg: Use @code
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 18:58:40 +02:00
Michael Niedermayer
1fc20af6af
avcodec/dvbsubdec: Implement display definition segment fallback from ETSI EN 300 743 V1.3.1
...
Fixes: subtitles.ts
Fixes: Ticket679
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 18:02:07 +02:00
Michael Niedermayer
f4ada6dc3f
ffmpeg: Implement support for seeking relative to EOF
...
Fixes Ticket227
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 17:16:51 +02:00
Nedeljko Babic
902bfa5b22
avcodec/aacdec_fixed: Fix preparation for resampler
...
2nd channel makes sense only for CPE type.
Skip 2nd channel in preparation for resampler (in spectral_to _sample())
depending on block type.
Fixes fate failure with clang ftrapv.
Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 16:53:29 +02:00
Michael Niedermayer
d64ba25a4d
ffplay: Use sws_scale to scale subtitles
...
Fixes some files from Ticket679
This also changes subtitles to 4:2:0 matching the output format and thus
simplifying the blend code.
This restricts placement to the chroma sample resolution though, speak up
if you consider this a problem, say so, the code could be changed to use
YUV444 for subtitles and scaling them down while blending, this would be
slower though.
The current code only uses a single swscale context and reinitializes it
as needed, this could be changed as well if needed
Reviewed-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 16:18:20 +02:00
Michael Niedermayer
f40ec70478
avformat/wavdec: Check for data_size overflow
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 13:47:44 +02:00
Ganesh Ajjanagadde
13d605e090
wavdec: make sample count check more precise
...
May be used to fix Ticket4577
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 13:13:09 +02:00
Michael Niedermayer
9ec17e45b2
avcodec/h264_refs: Allow slightly larger pps_ref_count[0] in PAFF RAP detection heuristic
...
Fixes Ticket4738
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 03:03:52 +02:00
Michael Niedermayer
0a6aa30f7c
avcodec/h264_refs: extend RAP heuristic to multiple PPS
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 03:03:30 +02:00
Michael Niedermayer
9789595189
avcodec/utils: Set coded_frame.pict_type in generic code
...
This makes it possible to remove more coded_frame usage without breaking the
publically visible coded_frame
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 01:45:32 +02:00
Michael Niedermayer
15eda746e7
avcodec/proresenc_anatoliy: remove coded_frame use
...
coded_frame.key_frame should be set by the core already
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-29 01:37:43 +02:00
Michael Niedermayer
47424b865a
avcodec/avcodec: define CODEC_FLAG based on AV_CODEC_FLAG instead of duplicating the numbers and comments
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 22:59:59 +02:00
Michael Niedermayer
7a0e085ec5
Merge commit 'c6e0829e3696c894d24c8088c3ee30a9c17534c2'
...
* commit 'c6e0829e3696c894d24c8088c3ee30a9c17534c2':
configure: Don't force _WIN32_WINNT to an older version if targeting winphone/winrt
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 22:30:21 +02:00
Michael Niedermayer
77c3908d5c
Merge commit 'd75b55635a02444c2f188c26e431a1cec992babe'
...
* commit 'd75b55635a02444c2f188c26e431a1cec992babe':
dxva2/d3d11va: Set _WIN32_WINNT to 0x0602 instead of 0x0600
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 22:22:10 +02:00
Ivan Uskov
9f543e01af
libavcodec/qsvdec.c delay in 1 microsecond replaced to more appropriate 500 microseconds
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 20:55:17 +02:00
Ivan Uskov
947c2aa456
libavcodec/qsvenc.c delay in 1 microsecond replaced to more appropriate 500 microseconds
...
This commit replaces the 1 microsecond delay by 500 microsecond for the
case when the MFX library does return MFX_WRN_DEVICE_BUSY status.
In general this warning never appears for simple encoding or
transcoding session because the GPU is so fast so it almost always is not busy and
any delay value just does not executes.
But for heavy transcoding tasks for example, when several QSV sessions
are running simultaneously then using a 1-microsecond delay may
result in 1000 iterations per each frame.
So here possible a paradoxical case when GPU loading also loads CPU by dummy tasks.
Official MFX/QSV samples by Intel are using 1 millisecond (i.e. 1000
microseconds) everywhere where MFX_WRN_DEVICE_BUSY does appear.
So 500us is a much more optimal value than 1us.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 20:37:38 +02:00
Nedeljko Babic
fee7c42bf4
avcodec/aac_fixed: Fix a bug in spectral_to_sample()
...
There was fixed number of loops (2048) in preparation for resampler, so
when number of samples is smaller than this, there would be an overflow on
ret_buf.
For some reason this behavior popped out only under valgrind with
--disable-memory-poisoning option.
This is now fixed and number of loops depends on actual number of samples.
Signed-off-by: Nedeljko Babic <nedeljko.babic@rt-rk.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 20:13:07 +02:00
Michael Niedermayer
8c2f00d590
ffmpeg.c: remove all remaining coded_frame uses
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 19:52:40 +02:00
Martin Storsjö
c6e0829e36
configure: Don't force _WIN32_WINNT to an older version if targeting winphone/winrt
...
This avoids having to manually set _WIN32_WINNT in --extra-cflags
when targeting these API families, which only was necessary to
work around configure setting _WIN32_WINNT to an older version
by default.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-28 19:37:49 +03:00
Martin Storsjö
d75b55635a
dxva2/d3d11va: Set _WIN32_WINNT to 0x0602 instead of 0x0600
...
If _WIN32_WINNT is unset, we force it to a new enough value to
make sure the necessary definitions are visible.
When targeting Windows Phone or Windows RT, _WIN32_WINNT should
be at least 0x0602 - otherwise the windows headers themselves
can cause errors (which technically are bugs in the headers).
Raising this value here shouldn't hurt; the alternative would
be to not touch it at all if WINAPI_FAMILY is set to phone/app,
or to force setting it to 0x0602 in configure if unset (for phone/app).
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-28 19:37:47 +03:00
Ivan Uskov
0b8b18b4fb
libavcodec/hevc_mp4toannexb_bsf.c: Optional argument "private_spspps_buf" to avoid extradata modification.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 16:22:00 +02:00
Michael Niedermayer
07558ad582
avcodec/libdcadec: exss is used only under ifdef, thus mark it as potentially unused
...
avoids a compiler warning
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 13:35:47 +02:00
Michael Niedermayer
c3fdf536f6
avcodec/h264_slice: Also check sei_recovery_frame_cnt for skip_frame nokey
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 13:27:16 +02:00
Michael Niedermayer
accc91642b
avcodec/h264_slice: do not skip 2nd field if first was not skipped
...
Found-by: John Högberg <john.hogberg@ericsson.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 11:40:57 +02:00
Chris Spencer
9c41126e1b
avdevice/decklink: Fix build error caused by a change in the SDK.
...
In version 10.4 of the DeckLink SDK, GetBufferedAudioSampleFrameCount() was changed to take an unsigned int instead of an unsigned long.
Signed-off-by: Chris Spencer <spencercw@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 05:16:05 +02:00
Michael Niedermayer
cdb0225fa9
ffmpeg: Use side data instead of coded_frame for error[] values
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 02:22:23 +02:00
Michael Niedermayer
1ca042a14b
avcodec/snowenc: Export quality/pict_type/PSNR stats through side data
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 02:22:23 +02:00
Michael Niedermayer
27294bc203
avcodec/mpegvideo_enc: export per frame PSNR through side data
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 02:22:22 +02:00
James Almer
5d95f32bff
avocdec/mpeg12dec: fix mpeg_xvmc hwaccel flag
...
The flag is deprecated and as such didn't get a new AV_ prefixed version
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-27 21:09:53 -03:00
Michael Niedermayer
360cebc9c8
avcodec/mpegvideo_enc: move ff_side_data_set_encoder_stats() call to after the vbv retry code
...
This ensures the data matches the final values
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 01:14:02 +02:00
Michael Niedermayer
ea7e4f8e6a
Merge commit 'b7040e67ec18259ca634a0e29d98469b3484a87c'
...
* commit 'b7040e67ec18259ca634a0e29d98469b3484a87c':
h264: fix AVDISCARD_NONKEY for some interlaced content
Conflicts:
libavcodec/h264.c
Not merged, the used field is not initialized where it is used
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 00:31:58 +02:00
Michael Niedermayer
e1296b5fa4
Merge commit 'b5c1c16247ab7d166c84eaf4564e49a1535fdaaf'
...
* commit 'b5c1c16247ab7d166c84eaf4564e49a1535fdaaf':
asfdec: do not align Data Object when Broadcast Flag is set
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 00:13:54 +02:00
Michael Niedermayer
4ecc9a2f31
Merge commit 'db21dde3f72c2331653399bdb8745350f015d847'
...
* commit 'db21dde3f72c2331653399bdb8745350f015d847':
qsvdec_mpeg2: drop an incorrect comment
Conflicts:
libavcodec/qsvdec_mpeg2.c
No change as the removed comment was not in libavcodec/qsvdec_mpeg2.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 00:13:14 +02:00
Michael Niedermayer
1467304802
Merge commit 'abdc7e403e003e97a0dcc4499ac319bf854aeead'
...
* commit 'abdc7e403e003e97a0dcc4499ac319bf854aeead':
fate: Add hap-chunk ref file
Conflicts:
tests/ref/fate/hap-chunk
See: c7e6443441
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 00:04:26 +02:00
Michael Niedermayer
952e9fbb4a
Merge commit 'aaf937ee3557bfb99c2ad298591b22a7f22ecbf7'
...
* commit 'aaf937ee3557bfb99c2ad298591b22a7f22ecbf7':
hap: Add utility functions file
Conflicts:
libavcodec/hap.c
No change, no files are/where missing in FFmpeg
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-28 00:02:37 +02:00
Michael Niedermayer
4be1b6bef0
Merge commit '3ee217853a6741b829a2683f49c590618891b1ab'
...
* commit '3ee217853a6741b829a2683f49c590618891b1ab':
Support the Hap chunked frame format
Conflicts:
libavcodec/hap.h
libavcodec/hapdec.c
libavcodec/version.h
See: c7e6443441
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 23:53:55 +02:00
Michael Niedermayer
f01e3c5d00
Merge commit '43dd004747fa697396b47d034a80e069facbea09'
...
* commit '43dd004747fa697396b47d034a80e069facbea09':
hap: Move some per-stream setup into decoder init rather than per-frame
Conflicts:
libavcodec/hapdec.c
See: 6074956fa1
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 23:37:19 +02:00
Michael Niedermayer
e3ec2cde2c
Merge commit 'b94ec30428b9696f99b08055735689623fe63954'
...
* commit 'b94ec30428b9696f99b08055735689623fe63954':
lavc: Update version and APIchanges
Conflicts:
doc/APIchanges
libavcodec/avcodec.h
libavcodec/version.h
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 23:21:23 +02:00
Michael Niedermayer
29d147c94d
Merge commit '059a934806d61f7af9ab3fd9f74994b838ea5eba'
...
* commit '059a934806d61f7af9ab3fd9f74994b838ea5eba':
lavc: Consistently prefix input buffer defines
Conflicts:
doc/examples/decoding_encoding.c
libavcodec/4xm.c
libavcodec/aac_adtstoasc_bsf.c
libavcodec/aacdec.c
libavcodec/aacenc.c
libavcodec/ac3dec.h
libavcodec/asvenc.c
libavcodec/avcodec.h
libavcodec/avpacket.c
libavcodec/dvdec.c
libavcodec/ffv1enc.c
libavcodec/g2meet.c
libavcodec/gif.c
libavcodec/h264.c
libavcodec/h264_mp4toannexb_bsf.c
libavcodec/huffyuvdec.c
libavcodec/huffyuvenc.c
libavcodec/jpeglsenc.c
libavcodec/libxvid.c
libavcodec/mdec.c
libavcodec/motionpixels.c
libavcodec/mpeg4videodec.c
libavcodec/mpegvideo.c
libavcodec/noise_bsf.c
libavcodec/nuv.c
libavcodec/nvenc.c
libavcodec/options.c
libavcodec/parser.c
libavcodec/pngenc.c
libavcodec/proresenc_kostya.c
libavcodec/qsvdec.c
libavcodec/svq1enc.c
libavcodec/tiffenc.c
libavcodec/truemotion2.c
libavcodec/utils.c
libavcodec/utvideoenc.c
libavcodec/vc1dec.c
libavcodec/wmalosslessdec.c
libavformat/adxdec.c
libavformat/aiffdec.c
libavformat/apc.c
libavformat/apetag.c
libavformat/avidec.c
libavformat/bink.c
libavformat/cafdec.c
libavformat/flvdec.c
libavformat/id3v2.c
libavformat/isom.c
libavformat/matroskadec.c
libavformat/mov.c
libavformat/mpc.c
libavformat/mpc8.c
libavformat/mpegts.c
libavformat/mvi.c
libavformat/mxfdec.c
libavformat/mxg.c
libavformat/nutdec.c
libavformat/oggdec.c
libavformat/oggparsecelt.c
libavformat/oggparseflac.c
libavformat/oggparseopus.c
libavformat/oggparsespeex.c
libavformat/omadec.c
libavformat/rawdec.c
libavformat/riffdec.c
libavformat/rl2.c
libavformat/rmdec.c
libavformat/rtpdec_latm.c
libavformat/rtpdec_mpeg4.c
libavformat/rtpdec_qdm2.c
libavformat/rtpdec_svq3.c
libavformat/sierravmd.c
libavformat/smacker.c
libavformat/smush.c
libavformat/spdifenc.c
libavformat/takdec.c
libavformat/tta.c
libavformat/utils.c
libavformat/vqf.c
libavformat/westwood_vqa.c
libavformat/xmv.c
libavformat/xwma.c
libavformat/yop.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 23:15:19 +02:00
Michael Niedermayer
444e9874a7
Merge commit 'def97856de6021965db86c25a732d78689bd6bb0'
...
* commit 'def97856de6021965db86c25a732d78689bd6bb0':
lavc: AV-prefix all codec capabilities
Conflicts:
cmdutils.c
ffmpeg.c
ffplay.c
libavcodec/8svx.c
libavcodec/aacenc.c
libavcodec/ac3dec.c
libavcodec/adpcm.c
libavcodec/alac.c
libavcodec/atrac3plusdec.c
libavcodec/bink.c
libavcodec/dnxhddec.c
libavcodec/dvdec.c
libavcodec/dvenc.c
libavcodec/ffv1dec.c
libavcodec/ffv1enc.c
libavcodec/fic.c
libavcodec/flacdec.c
libavcodec/flacenc.c
libavcodec/flvdec.c
libavcodec/fraps.c
libavcodec/frwu.c
libavcodec/gifdec.c
libavcodec/h261dec.c
libavcodec/hevc.c
libavcodec/iff.c
libavcodec/imc.c
libavcodec/libopenjpegdec.c
libavcodec/libvo-aacenc.c
libavcodec/libvorbisenc.c
libavcodec/libvpxdec.c
libavcodec/libvpxenc.c
libavcodec/libx264.c
libavcodec/mjpegbdec.c
libavcodec/mjpegdec.c
libavcodec/mpegaudiodec_float.c
libavcodec/msmpeg4dec.c
libavcodec/mxpegdec.c
libavcodec/nvenc_h264.c
libavcodec/nvenc_hevc.c
libavcodec/pngdec.c
libavcodec/qpeg.c
libavcodec/ra288.c
libavcodec/rv10.c
libavcodec/s302m.c
libavcodec/sp5xdec.c
libavcodec/takdec.c
libavcodec/tiff.c
libavcodec/tta.c
libavcodec/utils.c
libavcodec/v210dec.c
libavcodec/vp6.c
libavcodec/vp9.c
libavcodec/wavpack.c
libavcodec/yop.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 22:50:18 +02:00
Michael Niedermayer
94d68a41fa
Merge commit '7c6eb0a1b7bf1aac7f033a7ec6d8cacc3b5c2615'
...
* commit '7c6eb0a1b7bf1aac7f033a7ec6d8cacc3b5c2615':
lavc: AV-prefix all codec flags
Conflicts:
doc/examples/muxing.c
ffmpeg.c
ffmpeg_opt.c
ffplay.c
libavcodec/aacdec.c
libavcodec/aacenc.c
libavcodec/ac3dec.c
libavcodec/ac3enc_float.c
libavcodec/atrac1.c
libavcodec/atrac3.c
libavcodec/atrac3plusdec.c
libavcodec/dcadec.c
libavcodec/ffv1enc.c
libavcodec/h264.c
libavcodec/h264_loopfilter.c
libavcodec/h264_mb.c
libavcodec/imc.c
libavcodec/libmp3lame.c
libavcodec/libtheoraenc.c
libavcodec/libtwolame.c
libavcodec/libvpxenc.c
libavcodec/libxavs.c
libavcodec/libxvid.c
libavcodec/mpeg12dec.c
libavcodec/mpeg12enc.c
libavcodec/mpegaudiodec_template.c
libavcodec/mpegvideo.c
libavcodec/mpegvideo_enc.c
libavcodec/mpegvideo_motion.c
libavcodec/nellymoserdec.c
libavcodec/nellymoserenc.c
libavcodec/nvenc.c
libavcodec/on2avc.c
libavcodec/options_table.h
libavcodec/opus_celt.c
libavcodec/pngenc.c
libavcodec/ra288.c
libavcodec/ratecontrol.c
libavcodec/twinvq.c
libavcodec/vc1_block.c
libavcodec/vc1_loopfilter.c
libavcodec/vc1_mc.c
libavcodec/vc1dec.c
libavcodec/vorbisdec.c
libavcodec/vp3.c
libavcodec/wma.c
libavcodec/wmaprodec.c
libavcodec/x86/hpeldsp_init.c
libavcodec/x86/me_cmp_init.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 22:10:35 +02:00
John Högberg
b7040e67ec
h264: fix AVDISCARD_NONKEY for some interlaced content
...
When skip_frame is set to _NONKEY the decoder skips everything except intra
slices, which breaks frames that consist of an intra field together with any
other field type; half the frame becomes garbage. This patch fixes the issue by
letting non-intra slices through if they're part of a keyframe.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-27 18:11:00 +02:00
Alexandra Hájková
b5c1c16247
asfdec: do not align Data Object when Broadcast Flag is set
...
its size is invalid in this case
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-27 18:09:30 +02:00
Anton Khirnov
db21dde3f7
qsvdec_mpeg2: drop an incorrect comment
...
It got copypasted from the h264 decoder, but it does not apply to mpeg2.
2015-07-27 18:09:30 +02:00
Vittorio Giovara
abdc7e403e
fate: Add hap-chunk ref file
...
Missing from the push of 3ee217853a .
2015-07-27 16:56:12 +01:00
Vittorio Giovara
aaf937ee35
hap: Add utility functions file
...
Missing from the push of 3ee217853a .
2015-07-27 16:21:14 +01:00
Tom Butterworth
3ee217853a
Support the Hap chunked frame format
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-27 16:00:22 +01:00
Tom Butterworth
43dd004747
hap: Move some per-stream setup into decoder init rather than per-frame
...
This change will reject frames with a texture type which does not match
the stream description.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-27 15:53:03 +01:00
Vittorio Giovara
b94ec30428
lavc: Update version and APIchanges
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-27 15:26:57 +01:00
Vittorio Giovara
059a934806
lavc: Consistently prefix input buffer defines
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-27 15:24:59 +01:00
Vittorio Giovara
def97856de
lavc: AV-prefix all codec capabilities
...
Express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-27 15:24:58 +01:00
Vittorio Giovara
7c6eb0a1b7
lavc: AV-prefix all codec flags
...
Convert doxygen to multiline and express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-27 15:24:58 +01:00
Vittorio Giovara
4b6b1082a7
lavc: Deprecate avctx.me_method
...
This option is extremely codec specific and only a few codecs employ it.
Move it to codec private options instead: mpegenc family supports only 3
values, xavs and x264 use 5, and xvid has a different metric entirely.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-27 15:24:56 +01:00
Vittorio Giovara
03eb557414
wmv2enc: Check memory allocation
2015-07-27 14:44:07 +01:00
Vittorio Giovara
a67b67944a
ac3enc_template: Use the correct context field
...
For audio encoders, delay has no effect, use the appropriate one,
initial_padding (see 2df0c32 ).
2015-07-27 14:44:07 +01:00
Martin Storsjö
60a21b3d81
configure: Check for _M_ARMT to detect thumb when using MSVC
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-27 10:45:32 +03:00
Martin Storsjö
616b409c8f
configure: Check MSVC defines for identifying hardfloat
...
This macro identifies whether VFPv3 is available; MSVC defaults
to hardfloat (except for older MSVC versions for CE, targeting
ARMv4).
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-27 10:45:15 +03:00
Martin Storsjö
2192ff84dd
configure: Default to armasm for --toolchain=msvc when targeting arm
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-27 10:45:08 +03:00
Martin Storsjö
e4015b00d4
configure: Simplify, remove an unnecessary intermediate variable
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-27 10:44:44 +03:00
Martin Storsjö
6d3081e6c3
doc: Remove the now unnecessary remark about PATH and link.exe
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-27 10:44:31 +03:00
Alexandra Hájková
9e8627a1ff
asfdec: interpret the first flag in an asf packet as length flag
...
if the error correction flag is not set, a packet starts with payload
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-27 07:50:32 +02:00
Henrik Gramner
65c1480152
checkasm: Modify report format
...
Makes it a bit more clear where each test belongs.
Suggested by Anton Khirnov.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-27 07:45:11 +02:00
Anton Khirnov
f3bd3810d2
qsvdec_*: add missing CODEC_CAP_DR1
2015-07-27 07:44:34 +02:00
Paul B Mahol
4a2836eaf3
avfilter: add acrossfade filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-26 21:54:13 +00:00
Michael Niedermayer
0b6f092ed3
Merge commit '4b6b1082a73907c7c3de2646c6398bc61320f2c6'
...
* commit '4b6b1082a73907c7c3de2646c6398bc61320f2c6':
lavc: Deprecate avctx.me_method
Conflicts:
doc/encoders.texi
libavcodec/avcodec.h
libavcodec/libx264.c
libavcodec/motion_est.c
libavcodec/options_table.h
libavcodec/version.h
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 21:03:20 +02:00
Michael Niedermayer
59b009411f
Merge commit '03eb55741427c6608f63972c105e565ca0ba4f15'
...
* commit '03eb55741427c6608f63972c105e565ca0ba4f15':
wmv2enc: Check memory allocation
Conflicts:
libavcodec/wmv2enc.c
See: 6e8fe44815
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 20:43:25 +02:00
Michael Niedermayer
c707437572
Merge commit 'a67b67944aa9e6e794934d15f9fd9a9cf7173e09'
...
* commit 'a67b67944aa9e6e794934d15f9fd9a9cf7173e09':
ac3enc_template: Use the correct context field
See: 320ce9f284
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 20:33:34 +02:00
Michael Niedermayer
af5f707e46
avcodec/v410enc: do not use internal->byte_buffer
...
it is not optimal when the buffer size is well known at allocation time
This avoids a memcpy()
about 1% faster
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-27 20:03:02 +02:00
Michael Niedermayer
9fe873bec8
avcodec/utils: do not use internal->byte_buffer when little downsizing is expected
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 20:03:02 +02:00
Michael Niedermayer
0dbfb5386f
avcodec/internal: Deprecate ff_alloc_packet() in favor of ff_alloc_packet2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-27 19:58:36 +02:00
Michael Niedermayer
e36db49b7b
avcodec: Add a min size parameter to ff_alloc_packet2()
...
This parameter can be used to inform the allocation code about how much
downsizing might occur, and can be used to optimize how to allocate the
packet
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 19:57:52 +02:00
Claudio Freire
59216e0525
AAC Encoder: clipping avoidance
...
Avoid clipping due to quantization noise to produce audible
artifacts, by detecting near-clipping signals and both attenuating
them a little and encoding escape-encoded bands (usually the
loudest) rounding towards zero instead of nearest, which tends to
decrease overall energy and thus clipping.
Currently fate tests measure numerical error so this change makes
tests using asynth (which are near clipping) report higher error
not less, because of window attenuation. Yet, they sound better,
not worse (albeit subtle, other samples aren't subtle at all).
Only measuring psychoacoustically weighted error would make for
a representative test, so that will be left for a future patch.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 19:13:48 +02:00
Michael Niedermayer
c8c86b8f9b
avformat/mpegts: Replace silent cliping of language_count by asserts
...
Failure should not be possible, if it does occur then the code is
buggy and should be fixed not silently clip
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 18:15:17 +02:00
Shivraj Patil
71aede3ced
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for VP9 bilinear functions
...
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 17:13:24 +02:00
Michael Niedermayer
42aa02418e
avformat/mpegts: Use DVB_TELETEXT timestamp heuristic also for DVB subtitles
...
Fixes Ticket4200
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 15:38:40 +02:00
Michael Niedermayer
d06ea6e5ce
Merge commit '60a21b3d81c1a11cf5a08950eadd4e84ca2e597c'
...
* commit '60a21b3d81c1a11cf5a08950eadd4e84ca2e597c':
configure: Check for _M_ARMT to detect thumb when using MSVC
Conflicts:
configure
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 13:20:12 +02:00
Michael Niedermayer
8324d427c2
Merge commit '616b409c8f1e4fa568908212c01f6530da8d2e71'
...
* commit '616b409c8f1e4fa568908212c01f6530da8d2e71':
configure: Check MSVC defines for identifying hardfloat
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 13:07:49 +02:00
Michael Niedermayer
d9f3efd3d6
Merge commit '2192ff84dd720968108bc1ca54e239f4c94eb61d'
...
* commit '2192ff84dd720968108bc1ca54e239f4c94eb61d':
configure: Default to armasm for --toolchain=msvc when targeting arm
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 13:00:09 +02:00
Michael Niedermayer
a74e3fc18b
Merge commit 'e4015b00d4e9e40dc1693a018edd51bf7a04993e'
...
* commit 'e4015b00d4e9e40dc1693a018edd51bf7a04993e':
configure: Simplify, remove an unnecessary intermediate variable
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 12:51:52 +02:00
Michael Niedermayer
46f01e4133
Merge commit '6d3081e6c374ff7da12b07ed33d1662be1b32dbc'
...
* commit '6d3081e6c374ff7da12b07ed33d1662be1b32dbc':
doc: Remove the now unnecessary remark about PATH and link.exe
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 12:50:10 +02:00
Michael Niedermayer
90696ef368
Merge commit '9e8627a1ff9207b9e272d248da2e1bd0cc6fe2fe'
...
* commit '9e8627a1ff9207b9e272d248da2e1bd0cc6fe2fe':
asfdec: interpret the first flag in an asf packet as length flag
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 12:27:35 +02:00
Michael Niedermayer
b940145c67
Merge commit '65c14801527068fcaf729eeffc142ffd4682a21a'
...
* commit '65c14801527068fcaf729eeffc142ffd4682a21a':
checkasm: Modify report format
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 12:27:12 +02:00
Michael Niedermayer
d12be9ed70
Merge commit 'f3bd3810d274a7f51b5925fc3d2fc33e8043a5d4'
...
* commit 'f3bd3810d274a7f51b5925fc3d2fc33e8043a5d4':
qsvdec_*: add missing CODEC_CAP_DR1
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 11:50:17 +02:00
Michael Niedermayer
c719b7a42b
ffserver: add (), fix order of operations
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 11:40:00 +02:00
Reynaldo H. Verdejo Pinochet
b16b8c815c
ffserver: drop superfluous else clause
...
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com >
2015-07-26 23:53:08 -03:00
Reynaldo H. Verdejo Pinochet
c75bc268a2
ffserver: simplify assignment with ternary
...
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com >
2015-07-26 23:11:37 -03:00
Reynaldo H. Verdejo Pinochet
2ea642ff4b
ffserver: move decl to start of func
...
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com >
2015-07-26 22:29:47 -03:00
Michael Niedermayer
33c4fc0a2d
doc/decoders: Add entry for dvbsub and document compute_clut
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 00:06:43 +02:00
Michael Niedermayer
d41dceb14e
avcodec/dvbsubdec: Add option to select when to computer clut (always/never/"if needed")
...
Reviewed-by: Anshul <anshul.ffmpeg@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-27 00:02:48 +02:00
Michael Niedermayer
dcc540db6e
Merge commit '342b0ba5f93b09b1d0c2597db44605300e6fcc53'
...
* commit '342b0ba5f93b09b1d0c2597db44605300e6fcc53':
configure: Only redirect strtoll to _strtoi64 if necessary
Conflicts:
configure
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 23:32:29 +02:00
Michael Niedermayer
27e61a716c
Merge commit '5fd553d31272d5ed42a7a5a0ecaab7b3452da83a'
...
* commit '5fd553d31272d5ed42a7a5a0ecaab7b3452da83a':
configure: Only redefine inline to __inline for msvc if necessary
Conflicts:
configure
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 23:19:56 +02:00
Michael Niedermayer
867686997c
Merge commit '0cff125200ab53fa3ae70d85b4f614f269fe3426'
...
* commit '0cff125200ab53fa3ae70d85b4f614f269fe3426':
configure: Only add -FIstdlib.h for msvc/icl if necessary
Conflicts:
configure
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 22:59:10 +02:00
Michael Niedermayer
508c815d4d
Merge commit '9b4b96c0dee90d260891ec765b28f6ca15594340'
...
* commit '9b4b96c0dee90d260891ec765b28f6ca15594340':
force WINAPI_FAMILY to WINAPI_FAMILY_DESKTOP_APP to be able to use dxva.h
Conflicts:
libavcodec/dxva2_internal.h
See: c5327df838
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 22:41:18 +02:00
Michael Niedermayer
dc07e576ce
avformat/isom: Use AVRN codec to handle AVDJ
...
Fixes cropping
Fixes Ticket4741
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 22:27:29 +02:00
Michael Niedermayer
29a43bd588
avformat/hlsenc: Fix wording in comment
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 22:06:19 +02:00
Steve Lhomme
c5327df838
force WINAPI_FAMILY to WINAPI_FAMILY_DESKTOP_APP to use DVXA
...
The struct definitions in dxva.h, which are necessary in order to
actually use d3d11va, are hidden when WINAPI_FAMILY targets Windows Phone
or WindowsRT.
Building with WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP is disallowed
when targeting ARM. ("Compiling Desktop applications for the ARM
platform is not supported.") So we set _CRT_BUILD_DESKTOP_APP to 0
to tell the runtime not to detect some issues with this mismatching.
The same tweaks to detect if the API is available is done in dxva2_internal.h
when compiling each DXVA2/D3D11VA decoders.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 22:02:20 +02:00
Martin Storsjö
342b0ba5f9
configure: Only redirect strtoll to _strtoi64 if necessary
...
This isn't necessary any longer on MSVC 2013 Update 4.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-26 20:33:09 +03:00
Martin Storsjö
5fd553d312
configure: Only redefine inline to __inline for msvc if necessary
...
This isn't necessary on MSVC 2015 any longer.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-26 20:33:01 +03:00
Martin Storsjö
0cff125200
configure: Only add -FIstdlib.h for msvc/icl if necessary
...
This is only necessary on MSVC 2010/2012 (and possibly on some
ICL versions). This both avoids an extra hack on newer MSVC
versions, and better documents what the extra compiler option
is used for.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-26 20:33:00 +03:00
Steve Lhomme
9b4b96c0de
force WINAPI_FAMILY to WINAPI_FAMILY_DESKTOP_APP to be able to use dxva.h
...
The struct definitions in dxva.h, which are necessary in order to
actually use d3d11va, are hidden when WINAPI_FAMILY targets Windows Phone
or WindowsRT.
Building with WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP is disallowed
when targeting ARM. ("Compiling Desktop applications for the ARM
platform is not supported.") So we set _CRT_BUILD_DESKTOP_APP to 0
to tell the runtime not to detect some issues with this mismatching.
The same tweaks to detect if the API is available is done in dxva2_internal.h
when compiling each DXVA2/D3D11VA decoders.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-26 20:18:03 +03:00
Niklesh
f21fcf60ec
movtextdec.c: Add support for fontsize
...
Add support for fontsize in style records. The patch uses reset to
directly change back to default style instead of using closing tags,
since we are not handling the default styles right now.
Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in >
2015-07-26 09:35:20 -07:00
WereCatf
7106dfd945
avcodec/nvenc: 2-pass mode works even with non-low latency presets now
...
Github: Closes #140
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org >
2015-07-26 17:40:56 +02:00
Michael Niedermayer
e0031ca29a
avcodec/avrndec: Fix cropping
...
This also switches to using a separate AVCodecContext for the inner mjpeg decoder
which is cleaner and avoids fields from being overwritten with wrong values
Fixes Ticket162
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 17:18:35 +02:00
Michael Niedermayer
4b90dcb849
avcodec/dvbsubdec: Compute default CLUT based on bitmap analysis
...
Fixes displaying subtitles before any CLUT has been received
Fixes Ticket153
This will of course not display these initial subtitles in the correct
color (as that is not known at that point) but they should look clean
and not corrupted
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 14:39:55 +02:00
Michael Niedermayer
ce466275f8
Merge commit '4d0d55cd623bcd504867f948849380f6b4060b4d'
...
* commit '4d0d55cd623bcd504867f948849380f6b4060b4d':
checkasm: Use LOCAL_ALIGNED
See: f467fc02b4
See: 9e83ac6114
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 11:39:58 +02:00
Michael Niedermayer
4d0d55cd62
checkasm: Use LOCAL_ALIGNED
...
Fixes alignment issues and bus errors.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-26 10:36:22 +03:00
James Almer
f37a5dcb55
swresample/x86: add missing colon to labels
...
Silences warnings with Nasm
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-26 02:51:13 -03:00
James Almer
4d2c014a8f
x86/float_dsp: add missing colon to labels
...
Silences warnings with Nasm
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-26 02:51:08 -03:00
James Almer
d9e10af547
x86/vf_interlace: add missing colon to labels
...
Silences warnings with Nasm
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-26 02:50:50 -03:00
James Almer
844bef578e
avcodec/x86: add missing colon to labels
...
Silences warnings with Nasm
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-26 02:50:14 -03:00
Anshul Maheshwari
379ddc6af4
avformat/hlsenc: Add WebVtt support in hls
...
Signed-off-by: Anshul Maheshwari <er.anshul.maheshwari@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 05:59:43 +02:00
James Almer
ec7f04c13a
avcodec/texturedsp: fix undefined shift
...
Silences warnings when using -Wshift-overflow (GCC 6+)
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-26 00:40:17 -03:00
Michael Niedermayer
c3361b3a87
avformat/ipmovie: Fix late audio detection
...
Fixes audio in Ticket117
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 04:00:02 +02:00
Michael Niedermayer
8e0fdb03a2
avformat/ipmovie: Parse&handle late audio init
...
Fixes Ticket117
Based on problem description by Kostya
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 03:41:57 +02:00
Michael Niedermayer
e011538394
avformat/ipmovie: Factor init_audio() out
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 03:40:19 +02:00
Ivan Uskov
684b703843
libavcodec/qsvdec_h264.c: using "private_spspps_buf" argument for av_bitstream_filter_filter() to avoid failure after decoder re-initialization.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 02:04:41 +02:00
Ivan Uskov
1defff85cb
libavcodec/h264_mp4toannexb_bsf.c: Optional argument "private_spspps_buf" to avoid extradata modification.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 01:44:41 +02:00
Michael Niedermayer
508b79e6c1
Merge commit '41d47ea85fb4ad9cfb5c2dc808a46bc1d57f3986'
...
* commit '41d47ea85fb4ad9cfb5c2dc808a46bc1d57f3986':
lavc: add Intel libmfx-based HEVC decoder.
Conflicts:
Changelog
configure
libavcodec/Makefile
libavcodec/allcodecs.c
libavcodec/qsvdec.c
libavcodec/qsvdec_h2645.c
libavcodec/version.h
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 01:20:46 +02:00
Michael Niedermayer
bb619f41be
Merge commit 'bf52f773913cf74bdf0d2c8c2cb4473fa1b7801e'
...
* commit 'bf52f773913cf74bdf0d2c8c2cb4473fa1b7801e':
lavc: add Intel libmfx-based MPEG2 decoder.
Conflicts:
configure
libavcodec/qsvdec_mpeg2.c
Some cosmetics merged, rest is related to the removed parser code and
thus not merged
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 00:59:57 +02:00
Timo Rothenpieler
9f4bff834c
avcodec/nvenc: Delay frame output to increase encoding speed
2015-07-26 00:52:15 +02:00
Michael Niedermayer
15bcbc9d3b
Merge commit 'f89f78c1c563d98f10ee1d7e1ed67c9f9e03b741'
...
* commit 'f89f78c1c563d98f10ee1d7e1ed67c9f9e03b741':
lavc: add a HEVC mp4->annex B bitstream filter
Conflicts:
Changelog
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 00:34:27 +02:00
Michael Niedermayer
a822c3bd79
Merge commit '96dca089b19bf55293136277f5b081c56146e10e'
...
* commit '96dca089b19bf55293136277f5b081c56146e10e':
qsvdec: move qsv_process_data() from qsvdec_h264 to the common code
Conflicts:
libavcodec/qsvdec.c
libavcodec/qsvdec_h264.c
No change as the parser code has been removed
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-26 00:24:31 +02:00
Paul B Mahol
62aab839f8
avfilter/Makefile: fix order of framestep filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-25 22:07:25 +00:00
Paul B Mahol
c1fa846d0c
avfilter: add sidechain compress audio filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-25 22:07:20 +00:00
Michael Niedermayer
af08d8bfbb
Merge commit 'fa85fcf2b7d1ab822a59245077b8bb855406d3e9'
...
* commit 'fa85fcf2b7d1ab822a59245077b8bb855406d3e9':
qsvenc_hevc: fix enum declaration
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 23:47:54 +02:00
Timo Rothenpieler
15cd2f8ea9
avcodec/nvenc: Remove unused parameter
2015-07-25 23:43:16 +02:00
Michael Niedermayer
c3413a712a
Merge commit '22522d9c2c69624fe4d81d61ee65a56610f22f1d'
...
* commit '22522d9c2c69624fe4d81d61ee65a56610f22f1d':
qsvdec: fix a memleak of async_fifo
Conflicts:
libavcodec/qsvdec.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 23:28:39 +02:00
Michael Niedermayer
ef2a85ac53
Merge commit 'aa9d15d89bb4ee8a31607d3db1b8c5334eb88d2d'
...
* commit 'aa9d15d89bb4ee8a31607d3db1b8c5334eb88d2d':
qsvdec: avoid an infinite loop with no consumed data and no output
Conflicts:
libavcodec/qsvdec.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 23:10:14 +02:00
Michael Niedermayer
c105e0f077
avcodec/aacps_fixed_tablegen: change f_center to 64bit to avoid overflow
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 22:07:41 +02:00
Michael Niedermayer
e171309756
avutil/softfloat: Add a test for av_sincos_sf()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 21:42:42 +02:00
Ivan Uskov
fb57bc6c34
avcodec: Add QSV VC-1 video decoder.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 19:32:22 +02:00
Michael Niedermayer
7ec5115409
avformat/nutenc: Omit AV_PKT_DATA_QUALITY_STATS when storing side data.
...
This side data does not serve or improve decoding the data, it thus
would semantically be metadata and not side data.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 18:39:17 +02:00
Anton Khirnov
41d47ea85f
lavc: add Intel libmfx-based HEVC decoder.
2015-07-25 17:37:01 +02:00
Anton Khirnov
bf52f77391
lavc: add Intel libmfx-based MPEG2 decoder.
2015-07-25 17:36:59 +02:00
Ivan Uskov
6d0123f40e
avcodec: Add QSV MPEG-2 video decoder.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 17:31:18 +02:00
Anton Khirnov
f89f78c1c5
lavc: add a HEVC mp4->annex B bitstream filter
2015-07-25 17:26:53 +02:00
Anton Khirnov
96dca089b1
qsvdec: move qsv_process_data() from qsvdec_h264 to the common code
...
It will be shared with the upcoming mpeg2 and hevc decoders.
2015-07-25 17:24:25 +02:00
Anton Khirnov
fa85fcf2b7
qsvenc_hevc: fix enum declaration
...
Declare a named enum, not a variable with anonymous enum type.
2015-07-25 17:24:03 +02:00
Anton Khirnov
22522d9c2c
qsvdec: fix a memleak of async_fifo
...
init() is called whenever format changes, so current code would leak the
fifo in this case.
2015-07-25 17:23:46 +02:00
Anton Khirnov
aa9d15d89b
qsvdec: avoid an infinite loop with no consumed data and no output
...
This is triggerable with the HEVC decoder. It is unclear yet whether the
bug is in the calling code or the MSDK, but it seems better to check for
this in any case.
2015-07-25 17:23:29 +02:00
Michael Niedermayer
38490e0724
avcodec/dvdec: only attempt to conceal errors based on STA inconsistencies when error_concealment is set
...
This allows the user to disable it in the hypothetical case that STA values are wrong
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 15:27:44 +02:00
Michael Niedermayer
bbad3811cc
avcodec/aacps: Fix ;;
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 14:07:55 +02:00
Michael Niedermayer
f267d553f7
avcodec/aactab: Add ff_aac_eld_window_480_fixed
...
Fixes pointer type mismatch
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 13:59:53 +02:00
Michael Niedermayer
17cc35c76b
avcodec/aactab: Fix rounding of elements in ff_aac_eld_window_512_fixed
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 13:19:06 +02:00
Michael Niedermayer
1909a9151c
swscale/output: Fix "warning: assignment from incompatible pointer type"
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 03:15:56 +02:00
Zhang Rui
8a17335189
avformat/async: wake up main thread before exit background thread
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 02:26:01 +02:00
Zhang Rui
c0a4af408e
avformat/async: move more code into locked area in background thread
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 01:43:44 +02:00
Michael Niedermayer
dee551bbd2
avcodec/dvdec: skip 3rd stage ac decoding when the headers indicates that the data is inconsistent
...
Fixes Ticket1589
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-25 00:27:38 +02:00
Shivraj Patil
e21b090bfb
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for VP9 intra functions
...
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-24 22:51:34 +02:00
Hendrik Leppkes
0c0cd34f9c
configure: fix LARGEADDRESSAWARE flag with MSVC
...
Otherwise it would get translated like a library path (-L option),
which breaks setting the flag.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-24 21:56:10 +02:00
James Almer
ede590c84d
avcodec/aacsbr: add missing header include
...
Fixes make checkheaders
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-24 16:27:52 -03:00
Michael Niedermayer
dae79a185f
Merge commit 'c9edbe4af901e9bc9f05a62319637f9760df9a4a'
...
* commit 'c9edbe4af901e9bc9f05a62319637f9760df9a4a':
use a wrapper script to call MS link.exe to avoid mixing with /usr/bin/link.exe
See: 58ed7b6328
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-24 20:02:48 +02:00
Steve Lhomme
58ed7b6328
use a wrapper script to call MS link.exe to avoid mixing with /usr/bin/link.exe
...
favor link over link.exe in case some wrapper script already exists
fallback to "link" in the path if the one next to cl is not found
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-24 20:02:32 +02:00
Michael Niedermayer
daf6bce71b
avcodec/dvdec: Retry decoding seemingly damaged MBs while skiping likely damaged parts
...
Improves decoding of Ticket1589
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-24 17:36:00 +02:00
Steve Lhomme
c9edbe4af9
use a wrapper script to call MS link.exe to avoid mixing with /usr/bin/link.exe
...
Fallback to "link" in the path if the one next to cl is not found.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-24 18:21:22 +03:00
Paul B Mahol
3cb8eee6f7
swscale: ayuv64le output support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-24 03:45:48 +00:00
Paul B Mahol
052f64ecb2
swscale: ayuv64le input support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-24 03:44:58 +00:00
Paul B Mahol
f0489a35c0
avutil: add ayuv64le and ayuv64be packed pixel format
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-24 03:40:36 +00:00
Paul B Mahol
44fb00866f
avfilter: rename vf_reverse.c to f_reverse.c
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-24 02:09:53 +00:00
Paul B Mahol
591741b51d
avfilter: add areverse filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-24 02:06:48 +00:00
Ivan Uskov
0b159e3b65
libavcodec/qsvdec_h264.c: packet buffering has been removed since qsvdec.c does maintain own data buffering now.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-24 13:03:42 +02:00
Ivan Uskov
c90dbc67ed
libavcodec/qsvdec.c: The ff_qsv_decode() now guarantees the consumption of whole packet.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-24 12:46:55 +02:00
Michael Niedermayer
5da90d7ec3
avcodec/hapdec: Check that there is sufficient input data
...
Fixes Ticket4729
Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-24 04:40:15 +02:00
Michael Niedermayer
da8b70b810
Merge commit 'a54e720e0289433d6bc3f7ba0a37fa5cabfaeea9'
...
* commit 'a54e720e0289433d6bc3f7ba0a37fa5cabfaeea9':
configure: force -nologo- when detecting MSVC
Conflicts:
configure
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-24 00:44:58 +02:00
Michael Niedermayer
c6965f62a2
Merge commit '44f7df0c987965763c609f6dc36974b04182e58d'
...
* commit '44f7df0c987965763c609f6dc36974b04182e58d':
dds: Write the palette in the native endian form
Conflicts:
libavcodec/dds.c
See: 36a87c2dc7
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 21:30:28 +02:00
Steve Lhomme
a54e720e02
configure: force -nologo- when detecting MSVC
...
The -nologo- option is the inverse of -nologo, reenabling printing the
"logo" version header. This is useful if the compiler actually is a
wrapper that forces -nologo.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-23 22:28:08 +03:00
Tom Butterworth
64539e1213
avcodec/hap: (trivial) rename enum values and document their meaning
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 20:59:57 +02:00
Tom Butterworth
26e8247c1c
avcodec/hap: (trivial) clarify comment
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 20:57:52 +02:00
Martin Storsjö
44f7df0c98
dds: Write the palette in the native endian form
...
This fixes the palette on big endian, broken (or, differing from
little endian) since 57214b2f7 .
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-23 19:07:43 +03:00
Tom Butterworth
11f3d5c69b
hap: Name enums, remove unused struct member
2015-07-23 13:35:16 +01:00
Tom Butterworth
083cbc930d
snappy: Refactor so ff_snappy_uncompress() uses an existing buffer
...
Some uses of Snappy require uncompressing to positions within
an existing buffer. Also adds a function to get the uncompressed
length of Snappy data.
2015-07-23 13:35:16 +01:00
Alexandra Hájková
7f388c0fab
asfdec: remove the wrong condition
...
this condition breaks reading from the pipe as data_reached variable
have to be set to break while in the asf_read_header just after the Data
Object is found
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-23 10:50:27 +02:00
Tom Butterworth
ae5a8dca67
hap: Fix slice size computation
...
A bug was introduced in 977105407c whereby when
frame height wasn't divisible by the number of threads, pixels would be omitted
from the bottom rows during decode.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-23 10:46:19 +02:00
Tom Butterworth
ebe8b5d947
dds: Fix the slice size computation
...
A bug was introduced in 6b2b26e7af whereby when
frame height wasn't divisible by the number of threads, pixels would be omitted
from the bottom rows during decode.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-23 10:45:40 +02:00
Anton Khirnov
22ecfcd4c7
af_channelmap: properly set the supported output channel layouts
...
The current code expects query_formats() to be called exactly once, it
will leak if it's not called at all (filter initialized, but never
configured or used) or try to read freed memory if it's called more than
once.
Found-by: James Almer <jamrial@gmail.com >
CC: libav-stable@libav.org
2015-07-23 09:53:55 +02:00
Alexandra Hájková
aed7715b8f
asfdec: increment nb_streams right after the stream allocation
...
to prevent possible memory leaks
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-23 09:48:26 +02:00
Alexandra Hájková
ee80f834cb
asfdec: set nb_streams to 0 in the asf_read_close
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-23 09:47:59 +02:00
Paul B Mahol
e59315c4ab
doc/filters.texi: fix two typos in reverse filter description
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-23 07:35:54 +00:00
Paul B Mahol
625bf6a55c
avfilter/vf_reverse: check also pts_size when reallocating
...
Fixes crash of x32.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-23 07:11:52 +00:00
Michael Niedermayer
cb59d29fd6
Merge commit '11f3d5c69b711a1f1631961921ecd20d31f8336d'
...
* commit '11f3d5c69b711a1f1631961921ecd20d31f8336d':
hap: Name enums, remove unused struct member
Conflicts:
libavcodec/hap.h
See: 440c26e9c4
See: d8488090e5
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 18:43:59 +02:00
Michael Niedermayer
efa1e26122
Merge commit '083cbc930d077651ea7e3fbc32ec45352cfed7e7'
...
* commit '083cbc930d077651ea7e3fbc32ec45352cfed7e7':
snappy: Refactor so ff_snappy_uncompress() uses an existing buffer
Conflicts:
libavcodec/hapdec.c
libavcodec/snappy.c
See: 17ee24af7e
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 17:52:46 +02:00
Michael Niedermayer
8eff61fd45
avcodec/mips/vp9_idct_msa: Replace __volatile__ by volatile
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 17:38:01 +02:00
Shivraj Patil
c03800d592
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for VP9 idct functions
...
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 17:29:55 +02:00
Ivan Uskov
d50ab820da
libavcodec/qsvdec_h264.c: refactoring: functionality of qsv_process_data() has been moved into qsvdec.c
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 17:10:39 +02:00
Shivraj Patil
fd7eadd25c
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for VP9 lpf functions
...
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 16:52:18 +02:00
Nicolas George
52c75d486e
lavc/hevc: rudimentary support for skip_loop_filter.
...
+~9% speed on Core i5 on test sample.
All frames are treated as ref frames, skipping only applies
at level "all". The following mail contains information on
how to improve that:
http://ffmpeg.org/pipermail/ffmpeg-devel/2015-July/176116.html
2015-07-23 16:26:14 +02:00
Michael Niedermayer
744051a57a
avcodec/hevc_parse: Print the name of the NAL units in addition to the numerical nal_unit_type in the debug output
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 16:05:20 +02:00
Michael Niedermayer
0a03271ef6
Merge commit '7f388c0fabc51eca3106e7cc443393269435ab52'
...
* commit '7f388c0fabc51eca3106e7cc443393269435ab52':
asfdec: remove the wrong condition
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 12:45:00 +02:00
Michael Niedermayer
b04b021005
Merge commit 'ae5a8dca675ee544178225256893e679b750cb63'
...
* commit 'ae5a8dca675ee544178225256893e679b750cb63':
hap: Fix slice size computation
Conflicts:
libavcodec/hapdec.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 12:35:10 +02:00
Michael Niedermayer
157fa73992
Merge commit 'ebe8b5d947c41449c684f17c6826fe6bc46c0360'
...
* commit 'ebe8b5d947c41449c684f17c6826fe6bc46c0360':
dds: Fix the slice size computation
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 12:20:53 +02:00
Michael Niedermayer
9c31b39641
Merge commit '22ecfcd4c79cdf812fdf406525ddf0fd1f7114e4'
...
* commit '22ecfcd4c79cdf812fdf406525ddf0fd1f7114e4':
af_channelmap: properly set the supported output channel layouts
Conflicts:
libavfilter/af_channelmap.c
See: 39867f3e09
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 11:57:45 +02:00
Michael Niedermayer
40e8ade9eb
Merge commit 'aed7715b8fa295980c221f1cd095d42cd3bd74a6'
...
* commit 'aed7715b8fa295980c221f1cd095d42cd3bd74a6':
asfdec: increment nb_streams right after the stream allocation
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 11:43:56 +02:00
Michael Niedermayer
cd4c878934
Merge commit 'ee80f834cbb6dbacdc1efb4c658a7d775e82ebff'
...
* commit 'ee80f834cbb6dbacdc1efb4c658a7d775e82ebff':
asfdec: set nb_streams to 0 in the asf_read_close
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 11:34:40 +02:00
James Almer
a176bbc873
avutil/softfloat: move av_sincos_sf() back to header
...
Fixes compilation of host tool aacps_fixed_tablegen
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-22 23:12:21 -03:00
Ivan Uskov
1acb19d12b
libavcodec/qsvdec_h264.c: SPS parsing is now performed by MFXVideoDECODE_DecodeHeader() in libavcodec/qsvdec.c
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 03:48:00 +02:00
Michael Niedermayer
f467fc02b4
tests/checkasm/h264pred: Use LOCAL_ALIGNED_16()
...
Fixes alignment issue and bus errors
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 00:44:02 +02:00
Michael Niedermayer
9e83ac6114
tests/checkasm/h264qpel: Use LOCAL_ALIGNED_16()
...
Fixes alignment issue and bus errors
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-23 00:35:18 +02:00
Jovan Zelincevic
9e3135f49e
Edit documentation and versioning for the fixed point AAC decoder
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 23:25:33 +02:00
Nedeljko Babic
a9d986c2ce
avcodec: Minor macro polishing
...
Use macros from aac_defines.h for adding suffixes
instead of local macros.
Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 23:23:29 +02:00
Michael Niedermayer
4845f6687d
fate: Make ffprobe tests depend on avdevice
...
The test file they use needs avdevice to be created
Probably fixes Ticket 4455
Reviewed-by: James Almer <jamrial@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 22:26:10 +02:00
Nedeljko Babic
978a8540b6
tests: Add aac_fixed decoder test
...
Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 21:51:37 +02:00
Djordje Pesut
5fd81cf6f0
avcodec: Implementation of AAC_fixed_decoder (PS-module)
...
Add fixed point implementation.
Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 21:51:28 +02:00
Jovan Zelincevic
631496e057
avcodec: Table creation for AAC_fixed_decoder (PS-module)
...
Add fixed point implementation of functions for generating tables.
Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 21:51:22 +02:00
Michael Niedermayer
5362df2ee3
avcodec: remove unused sd variables
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 21:04:17 +02:00
Michael Niedermayer
3d083f6ffd
avformat/dump: Also print pict_type in dump_sidedata() for AV_PKT_DATA_QUALITY_STATS
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 21:04:17 +02:00
Michael Niedermayer
975257ffe6
avcodec/libx264: Export choosen pict_type
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 20:49:01 +02:00
Michael Niedermayer
caba19a5be
avcodec/dnxhdenc: Set pict type for AV_PKT_DATA_QUALITY_STATS correctly
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 20:46:52 +02:00
Michael Niedermayer
557e011bf1
avcodec/libxavs: Export pict_type in side data
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 19:52:04 +02:00
Michael Niedermayer
c40ecffd31
Replace AV_PKT_DATA_QUALITY_FACTOR by AV_PKT_DATA_QUALITY_STATS
...
The stats are a superset of the quality factor, also allowing the picture type and encoder "PSNR" stats to be exported
This also replaces the native by fixed little endian order for the affected side data
AV_PKT_DATA_QUALITY_FACTOR is left as a synonym of AV_PKT_DATA_QUALITY_STATS
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 19:31:52 +02:00
Donny Yang
a906e86a8d
apng: Fix decoding images with the PREVIOUS dispose op
2015-07-22 16:42:24 +00:00
Michael Niedermayer
1d7fa1ac89
Merge commit '21c90d86d27c2143354c7d782050a779b0986eb1'
...
* commit '21c90d86d27c2143354c7d782050a779b0986eb1':
mpegvideo: Add missing include
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 18:08:07 +02:00
Michael Niedermayer
d231d2be71
Merge commit 'a16854892c3af945d3ab0015699a0c9884f0a89a'
...
* commit 'a16854892c3af945d3ab0015699a0c9884f0a89a':
dds: Add a rgba fate test
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 17:59:24 +02:00
Paul B Mahol
787d370e14
avfilter: add deband filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-22 15:52:02 +00:00
Michael Niedermayer
b68e445f9b
Merge commit 'd08d8b61aa9f07d3ea993fe5392f7408c958d221'
...
* commit 'd08d8b61aa9f07d3ea993fe5392f7408c958d221':
dds: Fix 32bpp bitmaps decoding
Conflicts:
libavcodec/dds.c
See: 5c583b1419
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 17:30:22 +02:00
Michael Niedermayer
05cf687d13
Merge commit '57214b2f7f9b1ccfd61e232e8989b5ee850f169c'
...
* commit '57214b2f7f9b1ccfd61e232e8989b5ee850f169c':
dds: Fix palette decoding
Conflicts:
libavcodec/dds.c
See: 36a87c2dc7
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 17:26:37 +02:00
Michael Niedermayer
eaf15bba03
Merge commit 'ea4d46e72945cba37feb7aa154eb970732f513e4'
...
* commit 'ea4d46e72945cba37feb7aa154eb970732f513e4':
dds: Fix enum declaration
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 17:14:24 +02:00
Michael Niedermayer
6b9be608ce
Merge commit '2a187a074a7f5ad9f01f72ac9715ddfcb2dbb8ec'
...
* commit '2a187a074a7f5ad9f01f72ac9715ddfcb2dbb8ec':
asfdec: avoid crash in the case when chunk_len is 0 or pkt_len is 0
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 17:13:18 +02:00
Michael Niedermayer
fa7defc89a
Merge commit '93f16f338f9e8aba0c006752eb3afc3fe6e137fd'
...
* commit '93f16f338f9e8aba0c006752eb3afc3fe6e137fd':
asfdec: close the demuxer properly when read_header is failing
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 17:06:22 +02:00
Michael Niedermayer
fce350be0e
Merge commit '5655236a67203d923755f285584c6e68abe7e33f'
...
* commit '5655236a67203d923755f285584c6e68abe7e33f':
asfdec: factor out seeking to the Data Object outside while
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 16:53:26 +02:00
Michael Niedermayer
fbdbe7a5d2
Merge commit 'ecee1148af4989e1f9e16f0cdc9f98ad2045538c'
...
* commit 'ecee1148af4989e1f9e16f0cdc9f98ad2045538c':
qsvenc_hevc: use the correct HW plugin UID
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 16:46:25 +02:00
Michael Niedermayer
e1b5a2e46e
Merge commit 'e605bf3b590d295f215fcc9fd58eb11be55b68cb'
...
* commit 'e605bf3b590d295f215fcc9fd58eb11be55b68cb':
checkasm: remove empty array initializer list in h264pred test
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 16:38:16 +02:00
Michael Niedermayer
c1692439e0
Merge commit '3ae0e721c7b6e0483801b9039b3d140e3b68b7f5'
...
* commit '3ae0e721c7b6e0483801b9039b3d140e3b68b7f5':
checkasm: Always link statically
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 16:30:37 +02:00
Tom Butterworth
c7e6443441
Support the Hap chunked frame format
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 16:15:53 +02:00
Vittorio Giovara
21c90d86d2
mpegvideo: Add missing include
2015-07-22 13:35:44 +01:00
Vittorio Giovara
a16854892c
dds: Add a rgba fate test
2015-07-22 13:35:44 +01:00
Michael Niedermayer
d08d8b61aa
dds: Fix 32bpp bitmaps decoding
...
Found-By: ami_stuff
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-22 13:35:44 +01:00
Vittorio Giovara
57214b2f7f
dds: Fix palette decoding
...
Red and blue channels were decoded in the wrong order.
Found-By: ami_stuff
2015-07-22 13:35:44 +01:00
Vittorio Giovara
ea4d46e729
dds: Fix enum declaration
...
Drop the global variables with anonymous enum type.
2015-07-22 13:35:43 +01:00
Michael Niedermayer
9837d3b068
avformat/asfdec_f: Parse ECC byte according to spec
...
This should not change anything as the spec requires specific values
for the fields, which where handled previously.
Ask for samples when these values do not match
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 14:11:48 +02:00
Alexandra Hájková
2a187a074a
asfdec: avoid crash in the case when chunk_len is 0 or pkt_len is 0
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-22 12:11:46 +02:00
Alexandra Hájková
93f16f338f
asfdec: close the demuxer properly when read_header is failing
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-22 12:11:46 +02:00
Alexandra Hájková
5655236a67
asfdec: factor out seeking to the Data Object outside while
...
return INVALIDDARA if Data Object was not found
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-22 12:11:46 +02:00
Anton Khirnov
ecee1148af
qsvenc_hevc: use the correct HW plugin UID
2015-07-22 12:11:46 +02:00
周晓勇
3e35f8efa1
avcodec: loongson optimize pixblockdsp with mmi
...
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 12:11:31 +02:00
Janne Grunau
e605bf3b59
checkasm: remove empty array initializer list in h264pred test
...
Fixes MSVC compilation.
2015-07-22 12:06:32 +02:00
Carl Eugen Hoyos
6b2bb3d231
Cosmetics: Reindent after last commit.
2015-07-22 10:25:10 +02:00
Carl Eugen Hoyos
35b33f1a19
lavf/mxfdec: Set codec_tag AVup for Avid 1:1 input.
2015-07-22 10:23:18 +02:00
Niklesh
d373b508b5
movtextenc.c: Add support for text highlighting
...
This patch takes care of the secondary color changes in ASS through highlight and hilightcolor boxes.
Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in >
2015-07-21 20:13:40 -07:00
Niklesh
93e80a343b
movtextenc.c: Reorganize the code for easier maintenance
...
This patch reorganizes the code to make it easier to add support for different text modifier boxes and other styles in the future.
Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in >
2015-07-21 20:13:40 -07:00
Michael Niedermayer
0671dc5c53
avformat/asfdec_f: Improve packet resync heuristic
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 01:30:02 +02:00
Michael Niedermayer
5d79a07316
avformat/asfdec_f: Do not print errors if packets do not start with ECC
...
There is nothing wrong with such packets, the spec allows this
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 01:21:17 +02:00
Michael Niedermayer
385eb066ce
avformat/asfdec_f: Increase the amount of information provided in cases of errors
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-22 01:08:34 +02:00
Luca Barbato
3ae0e721c7
checkasm: Always link statically
...
Checkasm needs to use internal symbols that should not be made public.
2015-07-21 23:22:42 +02:00
Vesselin Bontchev
323ec6b5e2
Add support for TEA (Tiny Encryption Algorithm)
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 23:10:44 +02:00
Zhang Rui
830d3a0ebe
avformat/async: rename async_interrupt_callback to async_check_interrupt
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 21:19:05 +02:00
Zhang Rui
5e2098d906
avformat/async: fix interrupt_callback usage and return code
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 21:18:48 +02:00
Michael Niedermayer
8fe00dd18a
Merge commit '6b2b26e7af3ede0abfb46eb5725c26d1083f50bc'
...
* commit '6b2b26e7af3ede0abfb46eb5725c26d1083f50bc':
dds: Decode using optimal slices sizes
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 20:35:59 +02:00
Michael Niedermayer
2de5737ee2
Merge commit '977105407cae55876041dddbf4ce0934cdd4cd6c'
...
* commit '977105407cae55876041dddbf4ce0934cdd4cd6c':
hap: Decode using optimal slices sizes
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 20:21:54 +02:00
Bernd Bleßmann
d2b78fe6b7
libavfilter/vf_crop: implement process_command
...
Signed-off-by: Bernd Bleßmann <bb@it-entwicklung.de >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 19:19:36 +02:00
Bernd Bleßmann
99ad832c7e
libavfilter/vf_scale: implement process_command
...
Signed-off-by: Bernd Bleßmann <bb@it-entwicklung.de >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 18:20:22 +02:00
James Almer
d32547a24a
avcodec/utils: silence some deprecation warnings
...
And prevent eventual compilation failures once the relevant functions
and fields are removed.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-21 13:03:29 -03:00
James Almer
3e46c7dbbe
avcodec/options-test: don't alloc avctx->coded_frame
...
It's done automatically by avcodec_open2() now.
Fixes memleaks in fate-libavcodec-options.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-21 13:03:25 -03:00
周晓勇
c303ad85a9
avcodec: loongson optimize blockdsp with mmi
...
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 17:50:19 +02:00
Michael Niedermayer
39867f3e09
avfilter/af_channelmap: Move ff_add_channel_layout() call to querry_format()
...
Avoids memleak if querry_formats is not called
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 17:40:38 +02:00
Michael Niedermayer
f2d7409c72
avformat/async: Add missing else
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 17:04:11 +02:00
Michael Niedermayer
be0fd07457
Merge commit '219b39a71a5694b1c14a07b86477f665a5b6849b'
...
* commit '219b39a71a5694b1c14a07b86477f665a5b6849b':
parseutil: Use non ambiguous aliases for uhd
Conflicts:
doc/ffmpeg.texi
libavutil/parseutils.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 16:55:39 +02:00
Michael Niedermayer
593731efa8
tests/checkasm/Makefile: Fix checkasm with SDL
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 15:55:05 +02:00
Zhang Rui
aee909acfb
fate: add test for async protocol
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 15:19:42 +02:00
Tom Butterworth
5d0616ce0e
avcodec/hapdec: log reason for failure when texture type doesn't match stream
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 14:54:25 +02:00
周晓勇
b50910e9a9
avcodec: loongson optimize xvid idct with mmi
...
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 14:48:23 +02:00
周晓勇
21e2f030bf
avcodec: loongson move simple idct functions to a separate file
...
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 14:48:18 +02:00
Rostislav Pehlivanov
331c1e7494
aacenc: move the generation of ff_aac_pow34sf_tab[]
...
This commit moves the generation of ff_aac_pow34sf_tab[] out of the
encoder and into the table generator. The original commit log for
this table in 2011 actually mentions that it should be moved outside
but this never happened.
This is the first commit which cleans up the encoder a little.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 13:53:04 +02:00
Luca Barbato
6b2b26e7af
dds: Decode using optimal slices sizes
...
Enjoy some cache locality and use less threads.
About the same speedup provided to HAP.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-21 12:14:25 +02:00
Luca Barbato
977105407c
hap: Decode using optimal slices sizes
...
Enjoy some cache locality and use less threads.
About 5x speedup (from 60ms to 12ms to decode a 4k frame).
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-21 12:14:25 +02:00
Luca Barbato
219b39a71a
parseutil: Use non ambiguous aliases for uhd
...
uhd1 and uhd2 would be ambigous.
2015-07-21 11:43:44 +02:00
Zhang Rui
cee7acfcfc
MAINTAINERS: add myself as a maintainer for async protocol
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 10:40:31 +02:00
Tom Butterworth
6b96c70f2d
avcodec/hapdec: don't log texture format every frame, do it once per decode session
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 03:25:01 +02:00
Tom Butterworth
440c26e9c4
libavcodec/hap: remove unused struct member
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 03:15:04 +02:00
Tom Butterworth
d8488090e5
libavcodec/hap: Name enums
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 03:14:53 +02:00
James Almer
651448a8a7
avcodec/aacsbr: fix compilation with hardcoded tables
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-20 21:01:19 -03:00
Michael Niedermayer
eca84946ea
Merge commit '9ed6f9a17cc1f7d3699a1223783dadc1ee222069'
...
* commit '9ed6f9a17cc1f7d3699a1223783dadc1ee222069':
arm: use a local label instead of the function symbol in ff_prefetch_arm
See: cab6302534
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 01:49:21 +02:00
Michael Niedermayer
5d5f8b29b4
Merge commit 'f56d8d8dd72b1ab52aa814c5a0fccabf8040ef68'
...
* commit 'f56d8d8dd72b1ab52aa814c5a0fccabf8040ef68':
h264: aarch64: intra prediction optimisations
Conflicts:
libavcodec/h264pred.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 01:39:30 +02:00
Michael Niedermayer
495eee0123
Merge commit '40cf1bbacc6220a0aa6bed5c331871d43f9ce370'
...
* commit '40cf1bbacc6220a0aa6bed5c331871d43f9ce370':
Deprecate avctx.coded_frame
Conflicts:
ffmpeg.c
libavcodec/a64multienc.c
libavcodec/asvenc.c
libavcodec/cljrenc.c
libavcodec/dpxenc.c
libavcodec/gif.c
libavcodec/mpegvideo_enc.c
libavcodec/nvenc.c
libavcodec/proresenc_kostya.c
libavcodec/pthread_frame.c
libavcodec/rawenc.c
libavcodec/sunrastenc.c
libavcodec/tiffenc.c
libavcodec/version.h
libavcodec/xbmenc.c
libavcodec/xwdenc.c
libavdevice/v4l2.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 01:17:15 +02:00
Michael Niedermayer
809780ca42
avcodec/utils: Do not merge side data for encoders
...
With side data now being added to every MPEG*/H26* video encoder
in the form of a quality scalar, software which simply stores
the pkt->data to get an ES stream would break.
This also as a side-effect makes the code faster
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 00:54:59 +02:00
Michael Niedermayer
e5bae39f46
Merge commit '5d3addb937946eca5391e40b5e6308e74ac6f77b'
...
* commit '5d3addb937946eca5391e40b5e6308e74ac6f77b':
Add a quality factor packet side data
Conflicts:
doc/APIchanges
ffmpeg.c
libavcodec/avcodec.h
libavcodec/mpegvideo_enc.c
libavcodec/version.h
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-21 00:54:42 +02:00
Michael Niedermayer
b1fad7ac20
Merge commit 'd6604b29ef544793479d7fb4e05ef6622bb3e534'
...
* commit 'd6604b29ef544793479d7fb4e05ef6622bb3e534':
Gather all coded_frame allocations and free functions to a single place
Conflicts:
libavcodec/a64multienc.c
libavcodec/asvenc.c
libavcodec/cljrenc.c
libavcodec/dpxenc.c
libavcodec/dvenc.c
libavcodec/gif.c
libavcodec/huffyuvenc.c
libavcodec/jpeglsenc.c
libavcodec/libopenjpegenc.c
libavcodec/libtheoraenc.c
libavcodec/libvpxenc.c
libavcodec/mpegvideo_enc.c
libavcodec/nvenc.c
libavcodec/pngenc.c
libavcodec/proresenc_kostya.c
libavcodec/sunrastenc.c
libavcodec/tiffenc.c
libavcodec/utils.c
libavcodec/utvideoenc.c
libavcodec/v210enc.c
libavcodec/v410enc.c
libavcodec/xbmenc.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 23:43:05 +02:00
Janne Grunau
9ed6f9a17c
arm: use a local label instead of the function symbol in ff_prefetch_arm
...
Avoids a relocation which might end out of range for thumb2.
Reported-By: Ludovic Fauvet <etix@videolan.org >
Bug-Id: https://bugs.webkit.org/show_bug.cgi?id=137022
CC: libav-stable@libav.org
2015-07-20 23:10:29 +02:00
Janne Grunau
f56d8d8dd7
h264: aarch64: intra prediction optimisations
2015-07-20 23:10:29 +02:00
Michael Niedermayer
439c9760b0
Merge commit '91f9b6579ac684c4b51c4cd0dbaed0a4f8295edf'
...
* commit '91f9b6579ac684c4b51c4cd0dbaed0a4f8295edf':
flashsvenc: Keep coded_frame.key_frame a write-only variable
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 22:36:22 +02:00
Michael Niedermayer
5cc3faf619
Merge commit '75c1ed2e4c7250f5e75a11d0140727054ff0136b'
...
* commit '75c1ed2e4c7250f5e75a11d0140727054ff0136b':
ffv1enc: Use input frame to set SAR and interlacing
Conflicts:
libavcodec/ffv1enc.c
No change as the removed coded_frame uses where not in the code anymore
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 22:35:38 +02:00
Michael Niedermayer
b97e3e11a9
Merge commit '10a9149de242c7bbc4e130d3d7c593b89e20f80e'
...
* commit '10a9149de242c7bbc4e130d3d7c593b89e20f80e':
ffv1enc: Keep coded_frame.key_frame a write-only variable
Conflicts:
libavcodec/ffv1.h
libavcodec/ffv1enc.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 22:25:53 +02:00
Michael Niedermayer
256430cf38
Merge commit 'efc618aff9d68d2ddc323a5c5f892ac71951f162'
...
* commit 'efc618aff9d68d2ddc323a5c5f892ac71951f162':
qtrleenc: Keep coded_frame.key_frame a write-only variable
Conflicts:
libavcodec/qtrleenc.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 22:14:29 +02:00
Michael Niedermayer
bde7f5b135
Merge commit 'f3b4a92241a33d444f7f6018ebc12e2e3a2d335f'
...
* commit 'f3b4a92241a33d444f7f6018ebc12e2e3a2d335f':
libtheoraenc: Keep coded_frame.key_frame a write-only variable
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 22:13:42 +02:00
Michael Niedermayer
96504b3f72
Merge commit 'd6006dd9f0d4d01023359230212f1f9fa4800e5b'
...
* commit 'd6006dd9f0d4d01023359230212f1f9fa4800e5b':
libvpxenc: Do not entangle coded_frame
Conflicts:
libavcodec/libvpxenc.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 22:05:27 +02:00
Michael Niedermayer
70c648db89
Merge commit '7fc8d8a1b3da1666176b3d92e989ee74f3ef014e'
...
* commit '7fc8d8a1b3da1666176b3d92e989ee74f3ef014e':
libxvid: Do not entangle coded_frame
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 22:01:44 +02:00
Michael Niedermayer
033144c0d1
Merge commit '56672aeaee19216d2fd8eeb9964b1f71f0af2919'
...
* commit '56672aeaee19216d2fd8eeb9964b1f71f0af2919':
svq1enc: Do not entangle coded_frame
Conflicts:
libavcodec/svq1enc.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 21:53:09 +02:00
Michael Niedermayer
f2a581e2ee
Merge commit '05fb4c9aaf84b59f8ab1ce8d4c0f49dd12113024'
...
* commit '05fb4c9aaf84b59f8ab1ce8d4c0f49dd12113024':
proresenc: Do not entangle coded_frame
Conflicts:
libavcodec/proresenc_kostya.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 21:44:53 +02:00
Michael Niedermayer
a99f0ad194
Merge commit '91767360d86ac786571593ab11c7291010ab3829'
...
* commit '91767360d86ac786571593ab11c7291010ab3829':
a64multienc: Do not entangle coded_frame
Conflicts:
libavcodec/a64multienc.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 21:40:34 +02:00
Michael Niedermayer
6497aab022
Merge commit '95e2317ed85502dd8d96bcd9b12084dbfb8f9e8e'
...
* commit '95e2317ed85502dd8d96bcd9b12084dbfb8f9e8e':
roqvideoenc: Drop unneeded initialization
Conflicts:
libavcodec/roqvideoenc.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 21:31:42 +02:00
Michael Niedermayer
16b68bd2ee
Merge commit '1f171de8cae9d0c527c5f0bae2a597dbd65fd3a4'
...
* commit '1f171de8cae9d0c527c5f0bae2a597dbd65fd3a4':
mpegvideo_enc: Drop unnneded initialization
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 21:20:51 +02:00
Ivan Uskov
264ba3d847
libavcodec/qsvdec.c: missed MFXVideoDECODE_Close() call
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 19:57:57 +02:00
James Almer
736a386055
configure: check for erf() and copysign()
...
They are not available on some compilers.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-20 13:18:09 -03:00
James Almer
e3851169ee
x86/vf_ssim: add ff_ssim_4x4_line_xop
...
~20% faster than ssse3. Also enabled for x86_32
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-20 13:18:05 -03:00
James Almer
e1778fb657
x86/vf_ssim: fix some instruction comments
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-20 13:17:58 -03:00
Ivan Uskov
fec0485c43
Adding myself as maintainer for qsv*
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 17:31:36 +02:00
Michael Niedermayer
d82d11397f
avutil/arm/intmath: return int for uint8 / uint16 clip
...
The C functions return uint8/16_t but that is effectively int not unsigned int
Fixes fate-filter-tblend
We do not return uint8/16_t as that would require the compiler to truncate the
values, slowing it down.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 17:20:16 +02:00
Djordje Pesut
f85bc147fb
avcodec: Implementation of AAC_fixed_decoder (SBR-module)
...
Add fixed poind code.
Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 17:20:16 +02:00
Jovan Zelincevic
b0414da90d
avcodec: Table creation for AAC_fixed_decoder (SBR-module)
...
Create tables for fixed point code.
Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 17:20:16 +02:00
Djordje Pesut
5499467d5d
avcodec: Template creation for AAC decoder (SBR-module)
...
Move the existing code to a new template file.
Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 17:20:16 +02:00
Niklesh
a927aacbe6
movtextdec.c: Correct the highlight tags
...
Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in >
2015-07-20 08:16:19 -07:00
Vittorio Giovara
40cf1bbacc
Deprecate avctx.coded_frame
...
The rationale is that coded_frame was only used to communicate key_frame,
pict_type and quality to the caller, as well as a few other random fields,
in a non predictable, let alone consistent way.
There was agreement that there was no use case for coded_frame, as it is
a full-sized AVFrame container used for just 2-3 int-sized properties,
which shouldn't even belong into the AVCodecContext in the first place.
The appropriate AVPacket flag can be used instead of key_frame, while
quality is exported with the new AVPacketSideData quality factor.
There is no replacement for the other fields as they were unreliable,
mishandled or just not used at all.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-20 15:06:50 +01:00
Vittorio Giovara
5d3addb937
Add a quality factor packet side data
...
This is necessary to preserve the quality information currently exported
with coded_frame. Add the new side data to every encoder that needs it,
and use it in avconv.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-20 15:06:47 +01:00
Donny Yang
0030613d69
avcodec/apngdec: Fix typos in decoder causing incorrect results
...
Signed-off-by: Donny Yang <work@kota.moe >
2015-07-20 13:46:50 +00:00
Vittorio Giovara
d6604b29ef
Gather all coded_frame allocations and free functions to a single place
...
Allocating coded_frame is what most encoders do anyway, so it makes
sense to always allocate and free it in a single place. Moreover a lot
of encoders freed the frame with av_freep() instead of the correct API
av_frame_free().
This bring uniformity to encoder behaviour and prevents applications
from erroneusly accessing this field when not allocated. Additionally
this helps isolating encoders that export information with coded_frame,
and heavily simplifies its deprecation.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-20 14:16:15 +01:00
Vittorio Giovara
91f9b6579a
flashsvenc: Keep coded_frame.key_frame a write-only variable
2015-07-20 14:13:42 +01:00
Vittorio Giovara
75c1ed2e4c
ffv1enc: Use input frame to set SAR and interlacing
2015-07-20 14:13:42 +01:00
Vittorio Giovara
10a9149de2
ffv1enc: Keep coded_frame.key_frame a write-only variable
2015-07-20 14:13:42 +01:00
Vittorio Giovara
efc618aff9
qtrleenc: Keep coded_frame.key_frame a write-only variable
2015-07-20 14:13:42 +01:00
Vittorio Giovara
f3b4a92241
libtheoraenc: Keep coded_frame.key_frame a write-only variable
2015-07-20 14:13:42 +01:00
Vittorio Giovara
d6006dd9f0
libvpxenc: Do not entangle coded_frame
...
Keep coded_frame.key_frame a write-only variable.
2015-07-20 14:13:42 +01:00
Vittorio Giovara
7fc8d8a1b3
libxvid: Do not entangle coded_frame
2015-07-20 14:13:42 +01:00
Vittorio Giovara
56672aeaee
svq1enc: Do not entangle coded_frame
2015-07-20 14:13:42 +01:00
Vittorio Giovara
05fb4c9aaf
proresenc: Do not entangle coded_frame
2015-07-20 14:13:42 +01:00
Vittorio Giovara
91767360d8
a64multienc: Do not entangle coded_frame
...
This change (and the following ones of the same kind) is mainly to
simplify wrapping this section with an #if FF_API block later on.
No functional changes are applied, the fields of the context coded_frame
fields are directly initialized, instead of keeping a reference to the
coded_frame itself.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-20 14:12:48 +01:00
Vittorio Giovara
95e2317ed8
roqvideoenc: Drop unneeded initialization
...
Its fields are never initialized to begin with.
2015-07-20 13:57:25 +01:00
Vittorio Giovara
1f171de8ca
mpegvideo_enc: Drop unnneded initialization
...
coded_frame is already initialized where needed.
2015-07-20 13:57:18 +01:00
周晓勇
fdac5ff682
avcodec: loongson relocate constants of idctdsp and h264pred
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 14:29:22 +02:00
周晓勇
4bd6193397
avcodec: loongson constants redefined with macros
...
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 14:29:22 +02:00
Paul B Mahol
7967474bd9
avfilter/af_amerge: increase max number of channels from 32 to 64
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-20 09:59:59 +00:00
James Almer
6de5b6cd86
avfilter/af_astats: use UINT64_C instead of the LLU suffix
...
Should fix compilation with vs2012
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-20 00:05:20 -03:00
Michael Niedermayer
9ebe041e1c
Merge commit 'e93ca480c91397f82f2ea5b6a8b82ac6d0e2bfd2'
...
* commit 'e93ca480c91397f82f2ea5b6a8b82ac6d0e2bfd2':
parseutil: Add more resolution aliases
Conflicts:
doc/ffmpeg.texi
libavutil/parseutils.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 04:32:28 +02:00
Luca Barbato
e93ca480c9
parseutil: Add more resolution aliases
...
Add DCI 2k and 4k and uhd1 and uhd2.
2015-07-20 04:05:48 +02:00
Michael Niedermayer
cb53db144c
avformat/mp3dec: Rename sync() function to avoid build failure on android
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 02:41:44 +02:00
Michael Niedermayer
bf1fd59c6a
avformat/avidec: Fix demuxing avi with broken index
...
Fixes: genio-avi
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 02:11:49 +02:00
Michael Niedermayer
749f85496c
avcodec/ffv1enc: fix assertion failure with unset bits per raw sample
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 02:11:48 +02:00
Carl Eugen Hoyos
c239fcb948
lavc/jpeg2000: Signal lossless / bit-exact video stream.
2015-07-20 00:28:13 +02:00
Carl Eugen Hoyos
32d8726a31
lavf/rtpenc_jpeg: Warn if number of present quantization tables is not two.
2015-07-20 00:27:52 +02:00
Carl Eugen Hoyos
d8d2f934bd
lavc: Improve documentation for rc_max_rate and bit_rate.
...
Both may be set by user (libavformat) on decoding.
2015-07-20 00:27:51 +02:00
Michael Niedermayer
5c583b1419
avcodec/dds: Flip more R<->B cases
...
Fixes Ticket4665
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-20 00:03:11 +02:00
Michael Niedermayer
36a87c2dc7
avcodec/dds: fix paletted files
...
Fixes Ticket4664
The changed fate tests lack red/blue shades and thus look correct
either way
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 23:26:59 +02:00
James Almer
4ebe31abf1
RELEASE: update to 2.7.git
...
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-19 17:52:31 -03:00
James Almer
2db8c42ddc
avformat/mp3dec: remove unused variable
...
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-19 17:47:28 -03:00
Paul B Mahol
a8fbb7b625
avfilter: add random video filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-19 19:01:00 +00:00
Chris Spencer
eb468b0be0
avdevice/decklink: Add missing libraries when building with DeckLink support on Windows.
...
Signed-off-by: Chris Spencer <spencercw@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 20:32:41 +02:00
Vesselin Bontchev
0a551cbe97
Add support for Audible AAX (and AAX+) files
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 20:28:39 +02:00
Michael Niedermayer
4df66c7cd6
avformat/mp3dec: split position sync code out
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 19:31:08 +02:00
Michael Niedermayer
ea8785ceda
avcodec/utils: Check that channel count is valid in avcodec_open2();
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 18:17:45 +02:00
Michael Niedermayer
9c943e077b
Merge commit '69b92f1b99f3f210be19ee6ec06f6c0de1733031'
...
* commit '69b92f1b99f3f210be19ee6ec06f6c0de1733031':
qsvenc: properly handle asynchronous encoding
Conflicts:
libavcodec/qsvenc.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 16:34:12 +02:00
Michael Niedermayer
f929081f2e
Merge commit 'f5c4d38c78347b09478e21a661befff4b2d44643'
...
* commit 'f5c4d38c78347b09478e21a661befff4b2d44643':
qsvdec: properly handle asynchronous decoding
Conflicts:
libavcodec/qsvdec.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 16:13:35 +02:00
Michael Niedermayer
7093e215d0
Merge commit '6b15874fc2c3f565732201f7907ae1112727d6ae'
...
* commit '6b15874fc2c3f565732201f7907ae1112727d6ae':
af_resample: do not touch the timestamps if we are not resampling
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 16:05:33 +02:00
Michael Niedermayer
2dbaec690d
ffmpeg_filter: Check that filters have connected outputs before accessing the output stream
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 15:36:59 +02:00
Michael Niedermayer
bc3f19641c
Merge commit '6d592fbd0d8e89ecade3fc93b36ea200213dc01c'
...
* commit '6d592fbd0d8e89ecade3fc93b36ea200213dc01c':
avconv: split creating and (re-)configuring complex filtergraphs
Conflicts:
ffmpeg_filter.c
ffmpeg_opt.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 15:36:54 +02:00
Derek Buitenhuis
8271a84094
avfilter: Add reverse filter
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2015-07-19 14:13:51 +01:00
Michael Niedermayer
c7dd2365f4
Merge commit 'be101bc1e357c50fcb740bc4870b3bacc93a5727'
...
* commit 'be101bc1e357c50fcb740bc4870b3bacc93a5727':
avconv: create the complex filtergraphs earlier
Conflicts:
ffmpeg_opt.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 14:12:11 +02:00
Michael Niedermayer
3b0534efdc
Merge commit '1959351aecf09fc3e90208ff775f4849801dc13f'
...
* commit '1959351aecf09fc3e90208ff775f4849801dc13f':
avconv: move the no streams failure to open_output_file()
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 14:01:45 +02:00
Michael Niedermayer
15fbf3e72a
Merge commit 'ab7b038906f3e40ed474676d8e3029902a2078f5'
...
* commit 'ab7b038906f3e40ed474676d8e3029902a2078f5':
avconv: factor out the output stream initialization
Conflicts:
ffmpeg.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 13:50:33 +02:00
Michael Niedermayer
edd110ee45
Merge commit 'bd2ab27c488ae92c7820efe11d4f53d84e94d58e'
...
* commit 'bd2ab27c488ae92c7820efe11d4f53d84e94d58e':
avconv: use read_file() for reading the 2pass stats
Conflicts:
cmdutils.c
cmdutils.h
ffmpeg_opt.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 13:33:44 +02:00
Michael Niedermayer
247f4d1f18
Merge commit '6d5d9246042acb804a652e6fedfb7afe0ca85614'
...
* commit '6d5d9246042acb804a652e6fedfb7afe0ca85614':
avconv: move handling the 2pass logfile into avconv_opt
Conflicts:
ffmpeg.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 12:59:05 +02:00
Michael Niedermayer
db3e12a828
Merge commit '59245e0c5e10a849e67c632cccf4f677b2442e82'
...
* commit '59245e0c5e10a849e67c632cccf4f677b2442e82':
avconv: set the encoding/decoding_needed flags earlier
Conflicts:
ffmpeg.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 12:44:07 +02:00
Michael Niedermayer
843be56ee1
ffmpeg_opt: Fix stream copy flag for attachments
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 12:43:36 +02:00
Michael Niedermayer
8534c8c77a
Merge commit '56c2f37727015212a404cae0f444d8bc8704d691'
...
* commit '56c2f37727015212a404cae0f444d8bc8704d691':
avconv: drop update_sample_fmt()
Conflicts:
ffmpeg.c
No change as the removed code is not in FFmpeg
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 11:57:34 +02:00
Michael Niedermayer
3d4297f851
Merge commit 'e61f39849c2e2b7f492c17b42058242ed2fa4d57'
...
* commit 'e61f39849c2e2b7f492c17b42058242ed2fa4d57':
asfdec: make nb_sub to be unsigned int
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 11:52:35 +02:00
Michael Niedermayer
74aba00700
Merge commit '2883ef34b59c9b427c4cfad4620c3235e5778406'
...
* commit '2883ef34b59c9b427c4cfad4620c3235e5778406':
asfdec: read the replicated data in a separate function
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 11:45:08 +02:00
Michael Niedermayer
80a37fc3e1
Merge commit '0989d3ad1fbd7509815208b0a5792918492d2a68'
...
* commit '0989d3ad1fbd7509815208b0a5792918492d2a68':
asfdec: convert condition for the replicated data reading to be safer
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 11:29:55 +02:00
Michael Niedermayer
f509c9503a
Merge commit '406627287e015ce381795e85e2557b12bf60ca35'
...
* commit '406627287e015ce381795e85e2557b12bf60ca35':
asfdec: do not read replicated data when their length is 0
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 11:23:01 +02:00
Anton Khirnov
69b92f1b99
qsvenc: properly handle asynchronous encoding
...
Wait for async_depth frames before syncing.
2015-07-19 10:06:53 +02:00
Anton Khirnov
f5c4d38c78
qsvdec: properly handle asynchronous decoding
...
Wait for async_depth frames before syncing.
2015-07-19 09:47:45 +02:00
Anton Khirnov
6b15874fc2
af_resample: do not touch the timestamps if we are not resampling
...
This filter currently assumes that the input audio is continuous and
does some timestamps manipulation based on this assumption.
This is unnecessary if we are only converting the channel layout or the
sample format, without resampling. In such a case, just leave the
timestamps as they are.
2015-07-19 09:39:42 +02:00
Anton Khirnov
6d592fbd0d
avconv: split creating and (re-)configuring complex filtergraphs
...
The current code is less than straightforward due to the fact that
output streams can be created based on filtergraph definitions. This
change should make the code simpler and more readable. It will also be
useful in the future commits.
2015-07-19 09:38:53 +02:00
Anton Khirnov
be101bc1e3
avconv: create the complex filtergraphs earlier
...
Since global options are processed before all the other options now, we
do not have to try creating the complex filtergraphs several times
anymore, it is enough to do it once after the input files are opened.
2015-07-19 09:38:44 +02:00
Anton Khirnov
1959351aec
avconv: move the no streams failure to open_output_file()
...
It is a better place for it, there is no reason to wait until
transcode_init().
2015-07-19 09:38:28 +02:00
Anton Khirnov
ab7b038906
avconv: factor out the output stream initialization
2015-07-19 09:38:25 +02:00
Anton Khirnov
bd2ab27c48
avconv: use read_file() for reading the 2pass stats
...
Also, drop the now unused cmdutils_read_file(). There is no reason to
have two functions doing essentially the same thing.
2015-07-19 09:37:11 +02:00
Anton Khirnov
6d5d924604
avconv: move handling the 2pass logfile into avconv_opt
...
It more logically belongs there.
2015-07-19 09:34:24 +02:00
Anton Khirnov
59245e0c5e
avconv: set the encoding/decoding_needed flags earlier
...
This will be useful in the following commits.
2015-07-19 09:34:08 +02:00
Anton Khirnov
56c2f37727
avconv: drop update_sample_fmt()
...
There is only one decoder left that supports this (libopus, which is not
used by default since we have a native one) and this code goes against
the avconv design, since it propagates information back from the encoder
to decoder.
2015-07-19 09:33:51 +02:00
Alexandra Hájková
e61f39849c
asfdec: make nb_sub to be unsigned int
...
number of subpayloads should be always positive
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-19 09:20:01 +02:00
Alexandra Hájková
2883ef34b5
asfdec: read the replicated data in a separate function
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-19 09:18:27 +02:00
Alexandra Hájková
0989d3ad1f
asfdec: convert condition for the replicated data reading to be safer
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-19 09:16:28 +02:00
Alexandra Hájková
406627287e
asfdec: do not read replicated data when their length is 0
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-19 08:59:48 +02:00
Michael Niedermayer
54882156dd
avcodec/hevc_parser: Treat extradata parsing differently, as it should not contain an AU
...
Fixes ticket4718
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-19 03:24:25 +02:00
James Almer
bd48764532
avutil/x86/bswap: force inline asm versions with ICC
...
Recent ICC versions that define GCC as >= 4.5 (like ICC 13) apparently can't
optimize the generic C versions of av_bswap*() on their own.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-18 20:48:09 -03:00
James Almer
78347549a4
avutil/intmath: check for ICC before GCC
...
Intel compiler also defines __GNUC__, so the Intel specific intrinsics were not
really being used.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-18 19:59:34 -03:00
Paul B Mahol
9a829a2b6a
avfilter/vf_blend: unbreak tblend
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-18 05:01:16 +00:00
Paul B Mahol
5c7f708683
fate: add tblend filter test
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-18 05:01:16 +00:00
Michael Niedermayer
b5e716ae13
avformat/mpegtsenc: Add sdt_period, similar to pat_period
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 23:26:05 +02:00
Michael Niedermayer
34da54fd1a
avformat/mpegtsenc: Support a user specified PAT/PMT period
...
Can be used to fix Ticket3714
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 22:24:25 +02:00
Michael Niedermayer
a9c1545a33
avformat/mpegtsenc: support storing PAT/PMT per frame
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 22:19:19 +02:00
Ganesh Ajjanagadde
e3e4f1752c
doc/developer: add url for sample files
...
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 21:20:34 +02:00
Paul B Mahol
efd4e5fe68
avfilter/vf_blend: implement 16bit support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-18 02:07:44 +00:00
Paul B Mahol
e03cb1e115
fate: add test for mergeplanes filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-18 01:55:44 +00:00
Michael Niedermayer
599d746e07
avcodec/vp8: Check buffer size in vp8_decode_frame_header()
...
avoids null pointer dereference
Fixes: signal_sigsegv_d5de40_964_vp80-00-comprehensive-010.ivf with memlimit of 1048576
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 19:37:04 +02:00
Michael Niedermayer
a84f0e8d8f
avcodec/vp8: Fix null pointer dereference in ff_vp8_decode_free()
...
Fixes: signal_sigsegv_d5de23_967_vp80_00_comprehensive_010.ivf with memlimit 524288
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 19:03:23 +02:00
Michael Niedermayer
1c5b712c0a
avcodec/diracdec: Check for hpel_base allocation failure
...
Fixes null pointer dereference
Fixes: signal_sigsegv_b02a96_280_RL_420p_ffdirac.drc with memlimit of 67108864
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 18:05:41 +02:00
Michael Niedermayer
a194298954
avformat/movenc: Drop redundant bit exact field from context
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 13:27:33 +02:00
Michael Niedermayer
3197c0aa87
avcodec/rv34: Clear pointers in ff_rv34_decode_init_thread_copy()
...
Avoids leaving stale pointers
Fixes: signal_sigabrt_7ffff70eccc9_819_sabtriple.rm with memlimit 536870912
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 11:28:17 +02:00
Michael Niedermayer
129785b5e8
avutil/frame: Update AVFrame docs library references
...
These where apparently forgotten when AVFrames where moved into libavutil
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 10:46:36 +02:00
Michael Niedermayer
2927b61c55
avfilter/af_dynaudnorm: Use av_frame_get_channels()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 10:45:29 +02:00
Michael Niedermayer
f8e4d37983
avcodec/hevc_ps: Also print depth in failure path of map_pixel_format()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 05:12:00 +02:00
Ganesh Ajjanagadde
f6870495e1
avformat: increase first_frames threshold for mp3,ac3
...
Fixes Ticket4723
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 04:52:49 +02:00
Michael Niedermayer
9010be252e
Merge commit 'c9f8cfb6d9b34f3c51f1b7152c4dc3f2f8724dc4'
...
* commit 'c9f8cfb6d9b34f3c51f1b7152c4dc3f2f8724dc4':
fate: add checkasm target
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 02:39:01 +02:00
Michael Niedermayer
e6b01480e5
Merge commit '82e6ac85ff9aa7631b8c01521b3d6b5ca0bc8014'
...
* commit '82e6ac85ff9aa7631b8c01521b3d6b5ca0bc8014':
checkasm: test all architectures with optimisations
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 02:31:14 +02:00
Michael Niedermayer
3ad30d1bc0
Merge commit 'cb33f8d0f48b1e9d642ca1cbea142dcbedd08a27'
...
* commit 'cb33f8d0f48b1e9d642ca1cbea142dcbedd08a27':
checkasm: Give macro a body to avoid potential unexpected syntax issues
See: a39512ba9e
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 02:23:47 +02:00
Michael Niedermayer
78274b19f1
Merge commit '6cc4d3e9a982e926494f4b919d9733fe29774acf'
...
* commit '6cc4d3e9a982e926494f4b919d9733fe29774acf':
checkasm: exit with status 0 instead of 1 if there are no tests to perform
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 02:22:43 +02:00
Michael Niedermayer
c0894e6288
Merge commit '256ef19844892c6cf8e0386e3287bae970ec6320'
...
* commit '256ef19844892c6cf8e0386e3287bae970ec6320':
h264: arm: use intra pred8x8 functions only for chroma_format_idc <= 1
Conflicts:
libavcodec/arm/h264pred_init_arm.c
See: 565cabf5c8
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 02:13:22 +02:00
Michael Niedermayer
b1861f18b6
Merge commit 'fc56868399213d3e9be19bdebeb64df233b39a7e'
...
* commit 'fc56868399213d3e9be19bdebeb64df233b39a7e':
cosmetics: Reformat checkasm tests
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 01:57:04 +02:00
Zhang Rui
f477a3f5ab
avformat/async: support filling with a background thread.
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-18 01:46:50 +02:00
Janne Grunau
c9f8cfb6d9
fate: add checkasm target
2015-07-18 01:06:45 +02:00
Janne Grunau
82e6ac85ff
checkasm: test all architectures with optimisations
2015-07-18 01:06:45 +02:00
Michael Niedermayer
cb33f8d0f4
checkasm: Give macro a body to avoid potential unexpected syntax issues
2015-07-18 01:06:44 +02:00
Henrik Gramner
6cc4d3e9a9
checkasm: exit with status 0 instead of 1 if there are no tests to perform
2015-07-18 01:06:44 +02:00
Janne Grunau
256ef19844
h264: arm: use intra pred8x8 functions only for chroma_format_idc <= 1
2015-07-18 00:28:49 +02:00
Michael Niedermayer
72d1409e23
Merge commit 'd37f23263584774e1798e9ac909a398304a05091'
...
* commit 'd37f23263584774e1798e9ac909a398304a05091':
checkasm: Add unit tests for bswapdsp
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 23:26:59 +02:00
Michael Niedermayer
52b6d96268
Merge commit 'a344e5d094ebcf9a23acf3a27c56cbbbc829db42'
...
* commit 'a344e5d094ebcf9a23acf3a27c56cbbbc829db42':
x86: bswapdsp: Don't treat 32-bit integers as 64-bit
Conflicts:
libavcodec/x86/bswapdsp.asm
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 23:20:14 +02:00
Michael Niedermayer
c7c33ab721
Merge commit 'f5ee23004d1177ca6dd99b92cb4ff4b94b2eae09'
...
* commit 'f5ee23004d1177ca6dd99b92cb4ff4b94b2eae09':
configure: Factor out g722dsp module
Conflicts:
configure
libavcodec/arm/Makefile
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 23:04:47 +02:00
Michael Niedermayer
65b0f7ce08
Merge commit 'a623aa0069dff586241ad2ffedcd45ed840e2553'
...
* commit 'a623aa0069dff586241ad2ffedcd45ed840e2553':
configure: Factor out wmv2dsp module
Conflicts:
libavcodec/Makefile
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 22:56:00 +02:00
Michael Niedermayer
115a9b5091
Merge commit 'd42191c78befc1983f23b1899b2dda513b72f1ed'
...
* commit 'd42191c78befc1983f23b1899b2dda513b72f1ed':
configure: Factor out vp8dsp module
Conflicts:
configure
libavcodec/Makefile
libavcodec/x86/Makefile
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 22:45:34 +02:00
Michael Niedermayer
3500eccb8e
Merge commit 'd4aea1aa4060fb5ba7f5f426823b697d2a5af08b'
...
* commit 'd4aea1aa4060fb5ba7f5f426823b697d2a5af08b':
configure: Factor out vp56dsp module
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 22:31:45 +02:00
Michael Niedermayer
fd29dd432c
Merge commit '5cb4bdb2a03c3643f8f1e7d21d7094e61e0a4418'
...
* commit '5cb4bdb2a03c3643f8f1e7d21d7094e61e0a4418':
configure: Factor out rv34dsp module
Conflicts:
libavcodec/Makefile
libavcodec/x86/Makefile
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 22:21:36 +02:00
Michael Niedermayer
189f2ed902
avcodec/libx264: fix MPEG2 support
...
Found-by: rcombs
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 22:14:00 +02:00
Michael Niedermayer
77cd5193a5
Merge commit '575ec60e542114b2ef5b2f88b28eeb72389dda45'
...
* commit '575ec60e542114b2ef5b2f88b28eeb72389dda45':
configure: Factor out mss34dsp module
Conflicts:
libavcodec/Makefile
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 21:59:45 +02:00
Michael Niedermayer
ccd3edf81f
Merge commit '2edc77dc7be5f4a006c6295f4c827e5471f85262'
...
* commit '2edc77dc7be5f4a006c6295f4c827e5471f85262':
configure: Factor out ividsp module
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 21:51:19 +02:00
Michael Niedermayer
948a15195c
Merge commit 'b075869bc1e1aadea0a8dc819ebfb758adb9e3d0'
...
* commit 'b075869bc1e1aadea0a8dc819ebfb758adb9e3d0':
configure: Factor out flacdsp module
Conflicts:
configure
libavcodec/Makefile
libavcodec/arm/Makefile
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 21:42:14 +02:00
Michael Niedermayer
fd280de7ee
Merge commit '4da585ae478f8b6f865ab13779af399aee20d899'
...
* commit '4da585ae478f8b6f865ab13779af399aee20d899':
OS/2: Cleanup slib_create_def_cmd
See: 22a0387df2
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 21:32:18 +02:00
Luca Barbato
fc56868399
cosmetics: Reformat checkasm tests
2015-07-17 21:29:20 +02:00
Michael Niedermayer
e56f14659f
Merge commit 'e1319aa1c1be9b64117c19170344fb78841dd67c'
...
* commit 'e1319aa1c1be9b64117c19170344fb78841dd67c':
libx264: Add support for the MPEG2 encoder
Conflicts:
configure
libavcodec/Makefile
libavcodec/libx264.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 21:21:03 +02:00
Michael Niedermayer
4c7c0d37e5
avfilter/af_dynaudnorm: Fix "ISO C90 forbids mixed declarations and code" warnings
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 21:13:56 +02:00
Michael Niedermayer
2ea8a48083
avfilter/af_aresample: Check ff_all_* for allocation failures
...
Fixes: signal_sigabrt_7ffff70eccc9_498_divx502.avi with memlimit 1572864
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 21:13:56 +02:00
Henrik Gramner
d37f232635
checkasm: Add unit tests for bswapdsp
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-17 20:03:55 +02:00
Henrik Gramner
a344e5d094
x86: bswapdsp: Don't treat 32-bit integers as 64-bit
...
The upper halves are not guaranteed to be zero in x86-64.
Also use `test` instead of `and` when the result isn't used for anything other
than as a branch condition, this allows some register moves to be eliminated.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-17 20:02:28 +02:00
Vittorio Giovara
f5ee23004d
configure: Factor out g722dsp module
2015-07-17 18:46:24 +01:00
Vittorio Giovara
a623aa0069
configure: Factor out wmv2dsp module
2015-07-17 18:46:24 +01:00
Vittorio Giovara
d42191c78b
configure: Factor out vp8dsp module
2015-07-17 18:46:24 +01:00
Vittorio Giovara
d4aea1aa40
configure: Factor out vp56dsp module
2015-07-17 18:46:24 +01:00
Vittorio Giovara
5cb4bdb2a0
configure: Factor out rv34dsp module
2015-07-17 18:46:24 +01:00
Vittorio Giovara
575ec60e54
configure: Factor out mss34dsp module
2015-07-17 18:46:24 +01:00
Vittorio Giovara
2edc77dc7b
configure: Factor out ividsp module
2015-07-17 18:46:24 +01:00
Vittorio Giovara
b075869bc1
configure: Factor out flacdsp module
2015-07-17 18:46:23 +01:00
Michael Niedermayer
1cdfae0b3e
Merge commit '0cf5588d69922aa3e063bac6304c09c543a9ef52'
...
* commit '0cf5588d69922aa3e063bac6304c09c543a9ef52':
hq_hqa: Fix decoding when INFO section is absent
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 14:59:18 +02:00
Michael Niedermayer
187f4278e8
Merge commit 'a53540840d26beb57a5e53b7f488c23ddf86e193'
...
* commit 'a53540840d26beb57a5e53b7f488c23ddf86e193':
APIchanges: Mention lavfi and lavd identification symbol addition
Conflicts:
doc/APIchanges
No change as these symbols have been added a very long time ago to FFmpeg
and are already listed in APIchanges
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 14:50:41 +02:00
Michael Niedermayer
694f9ab1ef
Merge commit 'f1840b070dd449ad25e1ebbab463f10863a5e0f1'
...
* commit 'f1840b070dd449ad25e1ebbab463f10863a5e0f1':
Revert "mov: Double-check that alias path is not an absolute path"
Conflicts:
libavformat/mov.c
See: c9c7263e58
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 14:40:53 +02:00
Michael Niedermayer
441d5a7084
Merge commit 'b0017579b6e8de3d0d13dcfe0a4dd848dc6baa37'
...
* commit 'b0017579b6e8de3d0d13dcfe0a4dd848dc6baa37':
h264: Add support for Closed Caption export
Conflicts:
libavcodec/h264.c
libavcodec/h264_sei.c
See: 8234f0e3b4
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 14:13:19 +02:00
Paul B Mahol
ec6bef68f1
avfilter: bump minor and add Changelog entry
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-17 11:39:52 +00:00
Paul B Mahol
297df52f30
avfilter/af_compand: fix clipping with default options
...
Decays and attacks where by default set only for first channel
which caused poor defaults to be used which produced clipping
on any higher channel.
Reported-by: lachs0r
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-17 11:29:29 +00:00
LoRd_MuldeR
21436b95dc
avfilter: add Dynamic Audio Normalizer filter
2015-07-17 10:58:24 +00:00
Paul B Mahol
3b365dda5c
avfilter/af_astats: measure minimal and mean difference between two consecutive samples
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-17 09:30:03 +00:00
Dave Yeo
4da585ae47
OS/2: Cleanup slib_create_def_cmd
...
Export symbols by name rather then ordinal.
Remove PROTMODE directive as it does not make sense for 32 bit library.
Also silences a warning from some linkers.
Signed-off-by: Dave Yeo <dave.r.yeo@gmail.com >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-17 10:47:59 +02:00
Luca Barbato
e1319aa1c1
libx264: Add support for the MPEG2 encoder
2015-07-17 10:47:48 +02:00
Vittorio Giovara
0cf5588d69
hq_hqa: Fix decoding when INFO section is absent
2015-07-17 01:49:42 +01:00
Vittorio Giovara
a53540840d
APIchanges: Mention lavfi and lavd identification symbol addition
2015-07-17 01:44:22 +01:00
Vittorio Giovara
f1840b070d
Revert "mov: Double-check that alias path is not an absolute path"
...
This reverts commit 9286de0459 .
The change broke support for legit absolute file paths.
Reported-by: Maksym Veremeyenko <verem@m1stereo.tv >.
2015-07-17 01:44:22 +01:00
Kieran Kunhya
b0017579b6
h264: Add support for Closed Caption export
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-17 01:44:22 +01:00
Michael Niedermayer
8250943feb
Merge remote-tracking branch 'cehoyos/master'
...
* cehoyos/master:
lavfi/af_pan: Support a maximum of 64 channels.
lswr: Allow 64 channels internally.
lavc: Allow 64 channels internally.
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-17 00:54:39 +02:00
Carl Eugen Hoyos
ed5d62e509
lavfi/af_pan: Support a maximum of 64 channels.
...
The Soundflower input device supports 64 channels.
2015-07-17 00:18:29 +02:00
Carl Eugen Hoyos
a77401e1f7
lswr: Allow 64 channels internally.
2015-07-17 00:17:08 +02:00
Carl Eugen Hoyos
7f0d540188
lavc: Allow 64 channels internally.
2015-07-17 00:16:45 +02:00
Marton Balint
c8ec2109f9
avformat: bump micro version after adding concatdec features
...
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Marton Balint <cus@passwd.hu >
2015-07-17 00:12:04 +02:00
Marton Balint
5117b5e9aa
concatdec: add support for injecting packet metadata
...
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Marton Balint <cus@passwd.hu >
2015-07-17 00:12:04 +02:00
Marton Balint
25a6711c25
concatdec: add support for specifying outpoint of files
...
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Marton Balint <cus@passwd.hu >
2015-07-17 00:12:04 +02:00
Marton Balint
12d82004c5
concatdec: store eof condition in context
...
This is needed later for outpoint support which may leave the last file in a
not-eof state.
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Marton Balint <cus@passwd.hu >
2015-07-17 00:12:04 +02:00
Marton Balint
7ff0137a1f
concatdec: add support for specifying inpoint of files
...
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Marton Balint <cus@passwd.hu >
2015-07-17 00:12:04 +02:00
Marton Balint
53f2ef2c4a
mxfdec: calculate the index in display order
...
This should fix seeking for open GOP files as well.
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se >
Signed-off-by: Marton Balint <cus@passwd.hu >
2015-07-16 22:07:49 +02:00
Ivan Uskov
6e127990fa
Refactoring to move common QSV-related code part into libavcodec/qsvdec.c
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-16 21:30:45 +02:00
Tom Butterworth
17ee24af7e
avcodec/snappy: refactor so ff_snappy_uncompress uses an existing buffer
...
Some uses of Snappy require uncompressing to positions within an existing buffer. Also adds a function to get the uncompressed length of Snappy data.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-16 20:41:07 +02:00
Michael Niedermayer
c4dfb76fa7
avfilter/vf_eq: Support contrast from -1000 to 1000
...
Fixes "-vf eq=0.05,eq=20"
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-16 18:50:24 +02:00
Paul B Mahol
51925daafd
avfilter/af_astats: make sure p->last is actually always set when measuring max difference
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-15 19:24:37 +00:00
Paul B Mahol
59a9998908
avfilter/af_astats: also measure maximal difference between two consecutive samples
...
While here also mention bit depth in documentation.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-15 19:09:57 +00:00
Tom Butterworth
6074956fa1
avcodec/hap: move some per-stream setup into decoder init rather than per-frame
...
This change will reject frames with a texture type which doesn't match the stream description.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-16 16:04:06 +02:00
Shivraj Patil
012ba786e6
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for VP9 MC functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for VP9 MC functions in new file vp9_mc_msa.c
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-16 15:03:02 +02:00
Rong Yan
2af180bf1b
swscale/ppc/yuv2rgb_altivec: POWER LE support in the macros vec_unh() and vec_unl()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-16 14:27:58 +02:00
周晓勇
0bfa176c64
avcodec: loongson optimized idctdsp with mmi
...
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-16 14:27:53 +02:00
周晓勇
dcd14db806
avcodec: loongson add constant definition
...
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-16 14:27:49 +02:00
Michael Niedermayer
f1a38264f2
avcodec/pthread_frame: clear priv_data, avoid stale pointer in error case
...
Fixes: b4b47bc2b3fb7ca710bfffe5aa969e37_signal_sigabrt_7ffff70eccc9_744_nc_sample2.avi with memlimit of 4194304
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-16 12:18:30 +02:00
Carl Eugen Hoyos
8dad213143
lavc: Add properties field to AVCodecContext.
...
The new field can hold information about losslessness and closed captions for now.
2015-07-16 12:18:30 +02:00
Henrik Gramner
2cb34f82b9
checkasm: Add unit tests for h264qpel
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-15 19:47:07 +02:00
Luca Barbato
4512ee78e1
mpegts: Mark the muxer as supporting variable fps
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-15 19:43:48 +02:00
Luca Barbato
c88c5eef53
hevc: Split the struct setup from the pps parsing
2015-07-15 19:39:44 +02:00
Paul B Mahol
7aafac976f
avfilter/vf_smartblur: use the name 's' for the pointer to the private context
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-15 13:34:56 +00:00
Paul B Mahol
61641627b8
avfilter/af_astats: calculate audio bit-depth
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-15 13:26:43 +00:00
Paul B Mahol
3001558487
avfilter: add erosion, dilation, deflate & inflate filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-15 13:21:47 +00:00
Michael Niedermayer
a39512ba9e
tests/checkasm/checkasm: Give macro a body to avoid potential unexpected syntax issues
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-16 04:35:14 +02:00
Michael Niedermayer
4afc3429be
avformat/utils: Fix regression with H264 stream probing
...
Fixes Ticket4725
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-16 03:37:43 +02:00
Michael Niedermayer
cdca400c5e
avformat/utils: Print stream number in max_analyze_duration exit path
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-16 03:30:24 +02:00
Carl Eugen Hoyos
9901e53187
lavf/rtpenc_jpeg: Fix sending multiple quantization tables.
2015-07-16 00:36:13 +02:00
Donny Yang
99b0cadd13
apng: Fix wrong default final frame delay in muxer
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 22:52:06 +02:00
Michael Niedermayer
cbd4a1dbde
Merge commit '2cb34f82b92c15b811f5c03dc7f61a4baf6e02e3'
...
* commit '2cb34f82b92c15b811f5c03dc7f61a4baf6e02e3':
checkasm: Add unit tests for h264qpel
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 22:44:28 +02:00
Michael Niedermayer
1680f9c588
Merge commit '4512ee78e19fdb011bdec1b3a8dc0b315c82a81e'
...
* commit '4512ee78e19fdb011bdec1b3a8dc0b315c82a81e':
mpegts: Mark the muxer as supporting variable fps
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 21:29:12 +02:00
Michael Niedermayer
4e160ecdbc
Merge commit 'c88c5eef53ff1619724ba47b722da64ec0593dab'
...
* commit 'c88c5eef53ff1619724ba47b722da64ec0593dab':
hevc: Split the struct setup from the pps parsing
Conflicts:
libavcodec/hevc_ps.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 21:21:40 +02:00
Michael Niedermayer
269a71b68a
avcodec/mpeg4videodec: Clarify the mpeg4_unpack_bframes reference.
...
This should avoid misunderstandings like in Ticket4618
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 21:05:24 +02:00
Michael Niedermayer
a5d44d5c22
swscale/utils: Clear pix buffers
...
Fixes use of uninitialized memory
Fixes: a96874b9466b6edc660a519c7ad47977_signal_sigsegv_7ffff713351a_744_nc_sample.avi with memlimit 2147483648
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 20:06:34 +02:00
Michael Niedermayer
4a6b8289e6
avcodec/mips/mpegvideo_mmi: Use av_assert2()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 17:25:42 +02:00
ZhouXiaoyong
95418634b1
avcodec: loongson optimized mpegvideo dct unquantize with mmi
...
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 15:51:07 +02:00
周晓勇
a0ad6c85ac
avcodec: loongson optimized h264pred with mmi
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 15:51:02 +02:00
周晓勇
2c34389551
configure: loongson disable expensive optimizations in gcc O3 optimization
...
With gcc-4.9.2 loongson faild in test fate-dca, this is caused by option
-fexpensive-optimizations in -O3 optimization. We disable it temporarily
before the bug been fixed up.
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 13:24:23 +02:00
Michael Niedermayer
9d8070afe1
avfilter/internal: add more words to sentance
...
Hopefully fixes english syntax
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 13:09:41 +02:00
Arttu Ylä-Outinen
ae3f4e479a
MAINTAINERS: add myself as libkvazaar maintainer
...
Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 13:03:50 +02:00
Michael Niedermayer
8f2c045a0e
avformat/mov: Implement a same origin policy for references instead of only allowing a subset of relative pathes in references
...
Fixes Ticket4671
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 12:47:09 +02:00
Paul B Mahol
eea08efc0d
avfilter/x86/vf_psnr.asm: split one line of license text into two
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-14 23:54:26 +00:00
James Darnley
bff7242608
avfilter/vf_removegrain: add x86 and x86_64 SSE2 functions
...
Speed of all modes increased by a factor between 7.4 and 19.8 largely depending
on whether bytes are unpacked into words. Modes 2, 3, and 4 have been sped-up
by a factor of 43 (thanks quick sort!)
All modes are available on x86_64 but only modes 1, 10, 11, 12, 13, 14, 19, 20,
21, and 22 are available on x86 due to the number of SIMD registers used.
With a contribution from James Almer <jamrial@gmail.com >
2015-07-14 23:50:50 +00:00
Michael Niedermayer
dffae122d0
avcodec/mjpegdec: Fix DC overflow in decode_block()
...
Fixes Ticket4683
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 05:05:25 +02:00
Michael Niedermayer
90dd6ad22c
avformat/utils: inform the user if the protocol cannot be determined
...
Assuming the wrong protocol can lead to suboptimal seeking performance
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 04:09:09 +02:00
Michael Niedermayer
901922e047
avformat/utils: adjust short skip threshold in ff_configure_buffers_for_index() to avoid seeking if a packet is skiped
...
Fixes Ticket4126
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 03:35:08 +02:00
Michael Niedermayer
c9c7263e58
avformat/mov: Fix opening relative references
...
Possibly fixes Ticket4671
the removed check is wrong and insufficient
Based on patch by Maksym Veremeyenko <verem@m1.tv >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 01:12:45 +02:00
Michael Niedermayer
bfd17046c1
avcodec/mpeg12dec: Fix decoding of faulty interlaced mpeg2
...
Fixes Ticket4721
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 00:09:15 +02:00
Michael Niedermayer
522256b374
avfilter/internal: Improve docs about ff_request_frame()
...
Reviewed-by: James Darnley <james.darnley@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-15 00:09:14 +02:00
Timo Rothenpieler
550e872bcd
avcodec/nvenc: Fix build with older gcc versions
...
Aparently anonymous structs weren't always supported, not even sure if
they are standard conformant.
2015-07-14 23:00:44 +02:00
wm4
130a8e0eef
avformat: don't crash API users when demuxing mp4
...
This code is one big chunk of WTF.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 22:41:35 +02:00
Arttu Ylä-Outinen
b90b6af710
avcodec: add libkvazaar HECV encoder
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 18:00:36 +02:00
Ronald S. Bultje
ae4c9ddebc
vf_psnr: sse2 optimizations for sum-squared-error.
...
The internal line accumulator for 16bit can overflow, so I changed that
from int to uint64_t in the C code. The matching assembly looks a little
weird but output looks correct.
(avx2 should be trivial to add later.)
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Reviewed-by: James Almer <jamrial@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 17:57:14 +02:00
Zhang Rui
fcbea93cf8
avutil/fifo: Fix the case where func() returns less bytes than requested in av_fifo_generic_write()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 17:28:55 +02:00
Michael Niedermayer
6e80fe1ecd
ffmpeg: Fix cleanup after failed allocation of output_files
...
Fixes: 39a25908b84604acdaa490138282d091_signal_sigsegv_7ffff713351a_331_WAWV.avi with memlimit of 262144
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 15:59:11 +02:00
Michael Niedermayer
15629129dd
avformat/mov: Fix deallocation when MOVStreamContext failed to allocate
...
Fixes: 260813283176b57b3c9974fe284eebc3_signal_sigsegv_7ffff713351a_991_xtrem_e2_m64q15_a32sxx.3gp with memlimit of 262144
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 14:15:42 +02:00
Michael Niedermayer
0ff4953e1b
avfilter/vf_ssim: Fix "incompatible pointer type" warnings
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 13:29:55 +02:00
Michael Niedermayer
fd4c87fa3b
ffmpeg: Fix crash with ost->last_frame allocation failure
...
Fixes: 1013dbde2c360d939cc2dfc33e4f275c_signal_sigsegv_a0500f_45_320vp3.nsv with memlimit of 536870912
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 13:03:35 +02:00
Michael Niedermayer
bd27dc9102
ffmpeg: Fix deallocating input threads with partly failed file allocation
...
Fixes: 18615ff56beedc63a884a8db0678b47c_signal_sigsegv_7ffff713351a_991_xtrem_e2_m64q15_a32sxx.3gp with memlimit of 524288
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 12:42:41 +02:00
Ronald S. Bultje
dfc58584b4
vf_ssim: x86 simd for ssim_4x4xN and ssim_endN.
...
Both are 2-2.5x faster than their C counterpart.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Reviewed-by: James Almer <jamrial@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 05:07:07 +02:00
James Almer
39a04ebcaf
avutil/mem_internal: add missing header includes
...
Fixes make checkheaders
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-13 21:54:15 -03:00
Ivan Uskov
ce91bab70f
libavcodec/qsv.c: Issue fixed: QSV engine does not release display handler under linux platform.
...
Reviewed-by: Gwenole Beauchesne <gb.devel@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 02:02:55 +02:00
Michael Niedermayer
96e1cc3f8b
Merge commit 'a5a6a786bfebb85c269abc25559fd71963983581'
...
* commit 'a5a6a786bfebb85c269abc25559fd71963983581':
mp3: Forward seeking errors
Conflicts:
libavformat/mp3dec.c
No change as the avio_seek() that are part of seeking in mp3 are already
checked in FFmpeg
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 01:46:16 +02:00
Michael Niedermayer
3edc6d1cd9
Merge commit '32c8d89c036b0e75ece74aea638df587099def0b'
...
* commit '32c8d89c036b0e75ece74aea638df587099def0b':
hevc: Print the non-supported chroma_format_idc
Conflicts:
libavcodec/hevc_ps.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 01:33:58 +02:00
Michael Niedermayer
e17a459af0
Merge commit '8e373fe048812a25b238ea60a7052b8c07639a42'
...
* commit '8e373fe048812a25b238ea60a7052b8c07639a42':
hevc: Factor out the pixel format mapping from the sps parser
Conflicts:
libavcodec/hevc_ps.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 01:23:39 +02:00
Michael Niedermayer
db1ab7e5af
Merge commit 'c571424c7f6276a6374e1784ce2a33d4b6a4292d'
...
* commit 'c571424c7f6276a6374e1784ce2a33d4b6a4292d':
asfdec: prevent memory leaks found with Coverity Scan
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 00:54:55 +02:00
Michael Niedermayer
4bde1a4a37
avcodec/mpegvideo: Fix null pointer dereference of picture array
...
Fixes: 0d0a2bace067d09c08f0fa5340496c23_signal_sigsegv_7ffff713351a_342_WobblyWindowsIntro.avi with memlimit of 67108864
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-14 00:31:57 +02:00
Michael Niedermayer
503ec7139f
ffmpeg: Fix cleanup with ost = NULL
...
Fixes: 09e670595acbdafb226974b08dab66e3_signal_sigabrt_7ffff70eccc9_991_xtrem_e2_m64q15_a32sxx.3gp with memlimit of 1048576
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 23:34:29 +02:00
Michael Niedermayer
85b7456efe
avcodec/hevc_parser: Fix memleaks in parser mix
...
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 22:26:53 +02:00
Michael Niedermayer
32d023eb6d
avformat/oggdec: Check buf before copying data in to it
...
Fixes null pointer dereference
Fixes: aace024653cc62947336b86f8de812ab_signal_sigsegv_a0500f_343_WobblyWindowsIntro.ogg with memlimit 262144
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 22:10:24 +02:00
Michael Niedermayer
5d346feafa
avcodec/pthread_frame: check avctx on deallocation
...
Fixes null pointer dereferences
Fixes: af1a5a33e67e479f439239097bd0d4fd_signal_sigsegv_7ffff713351a_152_Dolby_Rain_Logo.pmp with memlimit of 8388608
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 22:09:50 +02:00
Luca Barbato
a5a6a786bf
mp3: Forward seeking errors
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-13 21:59:53 +02:00
Luca Barbato
32c8d89c03
hevc: Print the non-supported chroma_format_idc
...
And drop the spurious newline.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-13 21:59:53 +02:00
Luca Barbato
8e373fe048
hevc: Factor out the pixel format mapping from the sps parser
...
The function will grow larger as more formats are supported.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-13 21:59:53 +02:00
Alexandra Hájková
c571424c7f
asfdec: prevent memory leaks found with Coverity Scan
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-13 20:27:34 +02:00
James Almer
84e847c7c8
avcodec/hevc_parser: use the old parser only when hevc decoder is available
...
If it's not, then the new dependence-free parser will be used instead
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-13 14:57:54 -03:00
Michael Niedermayer
feb6a94f74
avutil/frame: fix crash with av_frame_unref(NULL)
...
Fixes: af94b3a3d26586c08f557cafe8246251_signal_sigsegv_7ffff713351a_343_XFMode.ASF with 2097152 alloc limit
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 19:26:44 +02:00
Michael Niedermayer
cc0380222a
avcodec/mpegvideo: Check for NULL in ff_mpv_common_end()
...
Fixes: af94b3a3d26586c08f557cafe8246251_signal_sigsegv_7ffff713351a_343_XFMode.ASF with 1048576 alloc limit
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 19:26:37 +02:00
Michael Niedermayer
697160366f
avcodec/vp3: check current_frame before accessing it
...
Fixes null pointer dereference
Fixes: b15eb06e0111e94bc59123c86db7aff9_signal_sigsegv_a0500f_45_320vp3.nsv with allocation limit 536870912
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 19:11:56 +02:00
Michael Niedermayer
ba05166174
configure: Fix build with --disable-decoders --enable-parser=hevc
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 17:43:05 +02:00
Michael Niedermayer
da10aaf238
Merge commit '1b9a8e5f1d007ea19f04032490d681becd0d4e6a'
...
* commit '1b9a8e5f1d007ea19f04032490d681becd0d4e6a':
dxva2_hevc: unbreak compilation after recent sps/pps changes
See: 1aab5d8ab1
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 17:12:00 +02:00
Michael Niedermayer
5be07d0206
Merge commit 'a062a55d37720abc8c704aa0e8682efd3cdc9c9b'
...
* commit 'a062a55d37720abc8c704aa0e8682efd3cdc9c9b':
hevc_parser: fix standalone build with the hevc decoder disabled
Conflicts:
libavcodec/Makefile
libavcodec/hevc.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 17:04:13 +02:00
Michael Niedermayer
1127b35ff1
Merge commit 'b9f76d19d81fbc7f088536f966c2d3dc23c34ddc'
...
* commit 'b9f76d19d81fbc7f088536f966c2d3dc23c34ddc':
hevc_ps: make sure failing to decode an SPS always returns an error
Conflicts:
libavcodec/hevc_ps.c
See: 15893adbdb
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 16:50:06 +02:00
Michael Niedermayer
afa97144cf
Merge commit '077b55943330150db0eafd36bbee614697cabd98'
...
* commit '077b55943330150db0eafd36bbee614697cabd98':
hevc: handle a NULL sps in set_sps() properly
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 16:41:09 +02:00
Michael Niedermayer
d13fc98247
Merge commit '18156b53f9b642b71c182c5c9818175a61572d2b'
...
* commit '18156b53f9b642b71c182c5c9818175a61572d2b':
hevc: do not pass an entire HEVCContext into export_stream_params()
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 16:31:10 +02:00
Michael Niedermayer
39bbdebb1e
avcodec/sanm: Reset sizes in destroy_buffers()
...
Fixes crash in 1288a2fe8e9ae6b00ca40e089d08ca65_signal_sigsegv_7ffff71426a7_354_accident.san with allocation limit 65536
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 16:06:37 +02:00
Michael Niedermayer
f7068bf277
avcodec/alac: Clear pointers in allocate_buffers()
...
Fixes: 06a4edb39ad8a9883175f9bd428334a2_signal_sigsegv_7ffff713351a_706_mov__alac__ALAC_6ch.mov
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 15:47:49 +02:00
Michael Niedermayer
b513661251
avformat/utils: Skip ff_configure_buffers_for_index() for local files
...
Theres no known case where its use on local files improves performance
if you know of such a case, please contact us
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 14:27:02 +02:00
Zhang Rui
f5c281daa8
configure: clean whitespace with [:space:]
...
https://en.wikibooks.org/wiki/Regular_Expressions/POSIX_Basic_Regular_Expressions
Fixes NDKr10e on Cygwin,
CC_IDENT for it is defined as
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 13:38:29 +02:00
Michael Niedermayer
488cc05192
avformat/mov: Use ff_configure_buffers_for_index()
...
Fixes Ticket2513
Fixes Ticket4432
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-13 12:38:21 +02:00
Michael Niedermayer
b183fb4767
avformat: Add ff_configure_buffers_for_index()
...
This allows configuring the io buffer in such way that few seeks are needed for playback
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-13 12:38:21 +02:00
James Almer
1b9a8e5f1d
dxva2_hevc: unbreak compilation after recent sps/pps changes
...
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-13 09:00:37 +02:00
Anton Khirnov
a062a55d37
hevc_parser: fix standalone build with the hevc decoder disabled
...
The parser depends on hevc_ps, which in turn needs some data tables.
Found-by: James Almer <jamrial@gmail.com >
2015-07-13 08:58:21 +02:00
Anton Khirnov
b9f76d19d8
hevc_ps: make sure failing to decode an SPS always returns an error
...
Some of the goto err clauses do not set the error code. It seems better
to fall back on INVALIDDATA instead of adding it everywhere explicitly.
2015-07-13 07:49:03 +02:00
James Almer
1aab5d8ab1
avcodec/dxva2_hevc: unbreak compilation after recent sps/pps changes
...
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-13 00:06:02 -03:00
Philip Langdale
b11c3fce38
avcodec/vdpau_hevc: unbreak compilation after sps/pps changes
...
There was some reorganisation in the HEVC headers so the sps and pps
now live in a different place.
2015-07-12 19:56:54 -07:00
Michael Niedermayer
10d7d0880c
avcodec/utils: Check that the sample rate is not negative when opening an encoder
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 03:51:33 +02:00
Michael Niedermayer
7c944b0a36
tests/checkasm/x86/Makefile: Use ASMSTRIPFLAGS for asm
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 03:15:44 +02:00
Michael Niedermayer
d6ff68ad85
Factor duplicated ff_fast_malloc() out into mem_internal.h
...
internal.h is difficult to use due to circular dependancies
mem.h is a public header ff_* is not public
Alternative solutions probably are possible too
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 02:41:43 +02:00
Ronald S. Bultje
03931ecf71
vf_ssim: remove another obscure double loop.
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 02:39:51 +02:00
Ronald S. Bultje
a1f4848049
ssim: refactor a weird double loop.
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 02:23:30 +02:00
Michael Niedermayer
4496ccc724
avcodec/hevc_parser: Reenable the old parser under ADVANCED_PARSER define
...
Feel free to use either, they both work but the old one provides
more information but needs the hevc decoder
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 02:14:58 +02:00
Michael Niedermayer
9e810a98a2
Merge commit '650060dfb665552442ec11b456660e3e9a9d9016'
...
* commit '650060dfb665552442ec11b456660e3e9a9d9016':
hevc_parser: parse and export some stream parameters
Conflicts:
configure
libavcodec/hevc_parser.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 01:28:57 +02:00
Michael Niedermayer
99558270ed
avcodec/hevc: Simplify skipped_bytes_pos code further
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 01:09:21 +02:00
Michael Niedermayer
ad92410d90
avcodec/hevc: Move skipped_bytes_pos_nal to HEVCNAL, simplify code
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 00:43:25 +02:00
Michael Niedermayer
bcc6c7bb65
avcodec/hevc: Move skipped_bytes_pos_size_nal into HAVCNAL
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 00:38:15 +02:00
Michael Niedermayer
5620ed3557
avcodec/hevc: Remove skipped_bytes_nal, simplify code
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-13 00:03:45 +02:00
Michael Niedermayer
93aa84c1ea
Merge commit '7f78155dc6b65be55efb5309b6dd2bb33925a8c4'
...
* commit '7f78155dc6b65be55efb5309b6dd2bb33925a8c4':
hevc: improve a comment
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 23:45:56 +02:00
Michael Niedermayer
4690a63632
Merge commit 'd82e1adc2019135a2fc45372e0ed0b5ef107cdd0'
...
* commit 'd82e1adc2019135a2fc45372e0ed0b5ef107cdd0':
hevc: move splitting the packet into NALUs into a separate function
Conflicts:
libavcodec/hevc.c
libavcodec/hevc.h
libavcodec/hevc_parse.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 23:44:24 +02:00
Michael Niedermayer
4c42c66935
Merge commit 'ae05b4865514fd71b5e9431e93aa0d03d7ba7751'
...
* commit 'ae05b4865514fd71b5e9431e93aa0d03d7ba7751':
hevc: eliminate the second call to hls_nal_unit()
Conflicts:
libavcodec/hevc.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 22:55:47 +02:00
Michael Niedermayer
760304e4c3
Merge commit 'd7bebe4805193783f0b6f292f9127a75709fb7d9'
...
* commit 'd7bebe4805193783f0b6f292f9127a75709fb7d9':
hevc: skip invalid/ignored NALUs when splitting the packet
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 22:46:06 +02:00
Michael Niedermayer
d5fcca83b9
Merge commit 'b11acd57326db6c2cc1475dd0bea2a06fbc85aa2'
...
* commit 'b11acd57326db6c2cc1475dd0bea2a06fbc85aa2':
hevc: remove HEVCContext usage from hevc_ps
Conflicts:
libavcodec/hevc.c
libavcodec/hevc_cabac.c
libavcodec/hevc_filter.c
libavcodec/hevc_mvs.c
libavcodec/hevc_ps.c
libavcodec/hevc_refs.c
libavcodec/hevcpred_template.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 22:28:54 +02:00
Paul B Mahol
885afff01c
avfilter/vf_w3fdif: implement slice threading
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-12 20:06:03 +00:00
Paul B Mahol
7b07e72abc
avfilter/vf_stereo3d: implement slice threading for anaglyph output
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-12 20:05:56 +00:00
Paul B Mahol
c02ee69be9
fate: add tests for stereo3d anaglyph modes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-12 20:05:56 +00:00
Michael Niedermayer
ddd86e4747
Merge commit 'ab05ed4c322ed0488ac9b5d2ef5d4ffa55a946a7'
...
* commit 'ab05ed4c322ed0488ac9b5d2ef5d4ffa55a946a7':
mpegvideo_parser: export pixel format and dimensions
Conflicts:
libavcodec/mpegvideo_parser.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 21:34:59 +02:00
Michael Niedermayer
547848f711
Merge commit '9f4c7397a296e6d11b3c6c121a6896163577dc7c'
...
* commit '9f4c7397a296e6d11b3c6c121a6896163577dc7c':
hevc: check slice address length
See: 05cc8c8e4b
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 21:31:53 +02:00
Michael Niedermayer
6727380d05
Merge commit 'a9a2f3613040c4f90bf15cbd76f8671252ecc043'
...
* commit 'a9a2f3613040c4f90bf15cbd76f8671252ecc043':
doc: add a section about building with libmfx
Conflicts:
doc/general.texi
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 21:23:16 +02:00
Michael Niedermayer
98c7f9741e
Merge commit '86eee85daddb682fa072c2e2657c90a514b855e3'
...
* commit '86eee85daddb682fa072c2e2657c90a514b855e3':
bytestream2: set the reader to the end when reading more than available
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 21:13:07 +02:00
Michael Niedermayer
f14fc55969
Merge commit '8bc67ec2c0d2b5444d51a1bed1d50f0e10d92717'
...
* commit '8bc67ec2c0d2b5444d51a1bed1d50f0e10d92717':
Checkasm: assembly testing and benchmarking tool
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 21:03:06 +02:00
Ganesh Ajjanagadde
4547cf68a0
avformat/isom: utilize bitrate hints
...
Fixes Ticket4546
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 20:23:58 +02:00
Niklesh
774ceee17e
movtextdec.c: Add support for highlight and hilightcolor box
...
Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in >
2015-07-12 10:24:17 -07:00
Anton Khirnov
077b559433
hevc: handle a NULL sps in set_sps() properly
...
This can happen in update_thread_context(), when the previous frame was
corrupted.
2015-07-12 18:57:10 +02:00
Anton Khirnov
18156b53f9
hevc: do not pass an entire HEVCContext into export_stream_params()
...
It only needs the parameter sets.
2015-07-12 18:52:02 +02:00
James Almer
a3b721d10d
avcodec/dcadec: silence request_channels deprecation warnings
...
This also prevents an eventual compilation failure once request_channels
is removed.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-12 13:32:22 -03:00
Anton Khirnov
650060dfb6
hevc_parser: parse and export some stream parameters
...
Particularly those that will be needed by the QSV decoder.
More can be added later as necessary.
2015-07-12 18:15:40 +02:00
Anton Khirnov
7f78155dc6
hevc: improve a comment
...
That loop does the actual full decoding, so 'parse' can be misleading.
2015-07-12 18:15:40 +02:00
Anton Khirnov
d82e1adc20
hevc: move splitting the packet into NALUs into a separate function
...
This function is independent of the decoding context, so we'll be able
to use it in the parser.
2015-07-12 18:15:39 +02:00
Anton Khirnov
ae05b48655
hevc: eliminate the second call to hls_nal_unit()
...
Also, make hls_nal_unit() work only on the provided NAL unit, without
requiring a whole decoding context.
This will allow splitting this code for reuse by the parser.
2015-07-12 18:15:39 +02:00
Anton Khirnov
d7bebe4805
hevc: skip invalid/ignored NALUs when splitting the packet
...
There is no need to wait until actually decoding the NALU. This will
allow to get rid of the second hls_nal_unit() call later.
2015-07-12 18:15:39 +02:00
Anton Khirnov
b11acd5732
hevc: remove HEVCContext usage from hevc_ps
...
Factor out the parameter sets into a separate struct and use it instead.
This will allow us to reuse this code in the parser.
2015-07-12 18:15:39 +02:00
Anton Khirnov
ab05ed4c32
mpegvideo_parser: export pixel format and dimensions
2015-07-12 18:15:39 +02:00
Andreas Cadhalpun
9f4c7397a2
hevc: check slice address length
...
It is used as get_bits argument and reading 0 bits doesn't make sense.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-07-12 18:15:39 +02:00
Anton Khirnov
a9a2f36130
doc: add a section about building with libmfx
2015-07-12 18:15:39 +02:00
Anton Khirnov
86eee85dad
bytestream2: set the reader to the end when reading more than available
...
This prevents possible infinite loops with the calling code along the
lines of while (bytestream2_get_bytes_left()) { ... }, where the reader
does not advance.
CC: libav-stable@libav.org
2015-07-12 18:15:39 +02:00
Ronald S. Bultje
f353b851b9
vf_ssim: fix s->coefs for yuv with non-4:2:0 subsampling.
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 17:15:42 +02:00
Henrik Gramner
8bc67ec2c0
Checkasm: assembly testing and benchmarking tool
...
It provides the following features:
* verify correctness by comparing output to the C version.
* detect failure to save and restore clobbered callee-saved registers.
* detect 32-bit parameters being used as if they were 64-bit in x86-64
(the upper halves are not guaranteed to be zero - but in practice
they very often are, which makes those bugs hard to spot otherwise).
* easy benchmarking.
Compile by running 'make checkasm'.
Execute by running 'tests/checkasm/checkasm'.
Optional arguments are '--bench' to run benchmarks for all functions,
'--bench=<pattern>' to run benchmarks for all functions that starts with
<pattern>, and '<integer>' to seed the PRNG for reproducible results.
Contains unit tests for most h264pred functions to get started, more tests
can be added afterwards using those as a reference.
Loosely based on code from x264. Currently only supports x86 and x86-64,
but additional architectures shouldn't be too much of an obstacle to add.
Note that functions with floating point parameters or floating point
return values are not supported. Some compiler-specific features or
preprocessor hacks would likely be required to add support for that.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2015-07-12 16:39:07 +02:00
Michael Niedermayer
d2e5297e93
Merge commit '796268654c7807c9a1cfb322c838383e2b900d60'
...
* commit '796268654c7807c9a1cfb322c838383e2b900d60':
asfdec: always reset packet state after seeking
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 16:34:18 +02:00
Michael Niedermayer
839d6bc192
avformat/riffde: Fix integer overflow in bitrate
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 16:24:20 +02:00
Michael Niedermayer
cd32637741
Merge commit 'f1bdc234370401c032cd85184e93c7c155eb6d62'
...
* commit 'f1bdc234370401c032cd85184e93c7c155eb6d62':
riff: Validate bitrate
Conflicts:
libavformat/riffdec.c
See: 189420cb56
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 16:23:42 +02:00
Andreas Cadhalpun
189420cb56
riffdec: prevent negative bit rate
...
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 16:12:36 +02:00
Michael Niedermayer
7da1f00e79
Merge commit 'c1d647b15afa69fa70f999a9ddcb98346409fb4d'
...
* commit 'c1d647b15afa69fa70f999a9ddcb98346409fb4d':
mp3: Make the seek more robust
Conflicts:
libavformat/mp3dec.c
Mostly not merged
See: b6267901c4 and various later commits
The bug is also not reproducable in FFmpeg
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 16:01:31 +02:00
Michael Niedermayer
ba77fb61f7
Merge commit 'd80811c94e068085aab797f9ba35790529126f85'
...
* commit 'd80811c94e068085aab797f9ba35790529126f85':
riff: Use the correct logging context
Conflicts:
libavformat/asfdec_o.c
libavformat/avidec.c
libavformat/dxa.c
libavformat/matroskadec.c
libavformat/mov.c
libavformat/riff.h
libavformat/riffdec.c
libavformat/wavdec.c
libavformat/wtvdec.c
libavformat/xwma.c
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 15:22:37 +02:00
Michael Niedermayer
e72988d3f8
Merge commit '355864ef7a9548ee6491a25de1e0650bd983a667'
...
* commit '355864ef7a9548ee6491a25de1e0650bd983a667':
g726: Do not crash on user mistake
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 15:08:30 +02:00
Ronald S. Bultje
3a18d3fa04
ivfenc: write duration at end-of-stream.
...
At the beginning, the value is not initialized.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 13:56:50 +02:00
Hendrik Leppkes
796268654c
asfdec: always reset packet state after seeking
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-12 13:24:23 +02:00
Michael Niedermayer
cdb0d7e439
avformat/brstm: Remove unused variable
...
Fixes "libavformat/brstm.c:128:35: warning: variable info_size set but not used"
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 12:17:40 +02:00
Michael Niedermayer
944a1aa3c5
avformat/yuv4mpegdec: Use 64bit for file offset
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-12 00:00:21 +02:00
Michael Niedermayer
f8db81074a
avcodec/utils: Assert that the pointer is set when size is in ff_fast_malloc()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-11 23:36:45 +02:00
Michael Niedermayer
59a07df067
avcodec/utils: Avoid undefined void casts in ff_fast_malloc()
...
based on code from libavutil/mem.c
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-11 23:24:16 +02:00
Michael Niedermayer
b3415e4c5f
avutil/mem: Fix potential overflow in overallocation code
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-11 22:47:09 +02:00
Michael Niedermayer
bc976e5793
avcodec/utils: Fix potential overflow in overallocation code
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-11 22:46:44 +02:00
Paul B Mahol
9ea81fe95e
fate: add tests for w3fdif filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-11 19:34:04 +00:00
Paul B Mahol
3666974230
avformat/yuv4mpegdec: remove unused variable
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-11 19:31:04 +00:00
Ronald S. Bultje
3bb58c377b
vf_psnr: fix rgb channel order mixup in final log message.
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-11 19:13:57 +02:00
Ronald S. Bultje
9879421f1a
vf_psnr: always calculate MSE over full pixel range.
...
This makes the output compatible with that of pretty much any other
tool that calculates PSNR.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-11 18:47:05 +02:00
Andreas Cadhalpun
f1bdc23437
riff: Validate bitrate
2015-07-11 18:45:45 +02:00
Luca Barbato
c1d647b15a
mp3: Make the seek more robust
...
Try to parse up to 4 packets to find the closest packet.
Reported-By: jan.schlueter@ofai.at
2015-07-11 18:45:45 +02:00
Luca Barbato
d80811c94e
riff: Use the correct logging context
2015-07-11 18:45:44 +02:00
Luca Barbato
355864ef7a
g726: Do not crash on user mistake
...
Properly report the sample rate as invalid
CC: libav-stable@libav.org
2015-07-11 18:45:44 +02:00
Michael Niedermayer
9b8b804cfb
avformat/yuv4mpegdec: Remove unused variables
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-11 14:49:55 +02:00
Ronald S. Bultje
733c5d889b
yuv4mpeg: add rough duration estimate and seeking.
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-11 14:46:19 +02:00
Ronald S. Bultje
c381af77c5
vF_psnr: move set_meta() calls out of loop.
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-11 12:48:58 +02:00
Michael Niedermayer
e76c34d08c
Merge commit '87f98a2b9d4c7218ad82bb45347a53b65e5244f3'
...
* commit '87f98a2b9d4c7218ad82bb45347a53b65e5244f3':
fbdev: Support the RGB565 colour space.
Conflicts:
libavdevice/fbdev_dec.c
See: 43d36599fe
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-11 12:25:03 +02:00
Dan Flett
87f98a2b9d
fbdev: Support the RGB565 colour space.
...
Tested on a Raspberry Pi.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-07-11 10:15:59 +03:00
Ronald S. Bultje
0303d43964
vf_psnr: add channel weighting based on chroma subsampling.
...
Also add per-channel psnr stream averages to final log message.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-11 04:14:09 +02:00
Michael Niedermayer
235e903b63
Merge commit '1410eeb6ea6bc5784e40032430afcdf54a79aedb'
...
* commit '1410eeb6ea6bc5784e40032430afcdf54a79aedb':
imc: Use correct position for flcoeffs2 calculation
See: 75fd5ce4c1
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-11 00:38:16 +02:00
Michael Niedermayer
c06e556274
avcodec/mpeg4videodec: Check P cbpy
...
Fixes undefined behavior
Fixes: signal_sigsegv_c3097a_991_xtrem_e2_m64q15_a32sxx.3gp
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-11 00:22:29 +02:00
Andreas Cadhalpun
75fd5ce4c1
imc: use correct position for flcoeffs2 calculation
...
flcoeffs2[pos] should be the log2 of flcoeffs1[pos].
flcoeffs1[0] can be 0 here, thus flcoeffs2[pos] gets set to -inf,
causing problems further down.
This seems to have been copied from imc_decode_level_coefficients in
commit 4eb4bb3 without updating the position.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-07-11 00:00:36 +02:00
Michael Niedermayer
8fca37d5f8
avfilter/vf_ssim: Mark constant tables as const
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-10 23:43:21 +02:00
Michael Niedermayer
d759f7f1d0
avcodec/j2kenc: remove unused variable
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-10 23:24:20 +02:00
Andreas Cadhalpun
1410eeb6ea
imc: Use correct position for flcoeffs2 calculation
...
flcoeffs2[pos] should be the log2 of flcoeffs1[pos].
flcoeffs1[0] can be 0 here, thus flcoeffs2[pos] gets set to -inf,
causing problems further down.
This seems to have been copied from imc_decode_level_coefficients in
commit 4eb4bb3 without updating the position.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-10 23:13:30 +02:00
Andreas Cadhalpun
05cc8c8e4b
hevc: check slice address length
...
It is used as get_bits argument and reading 0 bits isn't supported.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-07-10 21:28:56 +02:00
Michael Niedermayer
72527d9c54
Merge commit '872fab4a3df48e7e6484333ee2228c684e319634'
...
* commit '872fab4a3df48e7e6484333ee2228c684e319634':
asfdec: Fix reading from the pipe
Merged-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-10 20:47:46 +02:00
Michael Niedermayer
47d077337a
avcodec/utils: Document 32 min for h264 width
...
Suggested-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-10 18:31:42 +02:00
Michael Niedermayer
b1e242bc56
avcodec/g2meet: Check R/G/B values in epic_decode_pixel_pred()
...
Fixes: asan_double-free_d34593_861_smp3.wmv
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-10 18:11:28 +02:00
Andreas Cadhalpun
3526a120f9
snow: remove an obsolete av_assert2
...
It asserts that the frame linesize is larger than 37, but it can be
smaller and decoding such frames works.
Before commit cc884a35 src_stride > 7*MB_SIZE was necessary, because the
blocks were interleaved in the tmp buffer and the last block was added
with an offset of 6*MB_SIZE.
It was changed for src_stride <= 7*MB_SIZE to write the blocks
sequentially, hence the larger tmp_step.
After that the assert was only necessary to make sure that the buffer
remained large enough.
Since commit bd2b6b33 s->scratchbuf is used as tmp buffer.
As part of commit 86e107a7 the minimal scratchbuf size was increased to
256*7*MB_SIZE, which is enough for any src_stride <= 7*MB_SIZE.
Also add a comment explaining the tmp_step calculation.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-07-10 16:21:50 +02:00
Michael Niedermayer
7ef6656b1e
avcodec/utils: use a minimum 32pixel width in avcodec_align_dimensions2() for H.264
...
Fixes Assertion failure
Found-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-10 15:18:41 +02:00
Michael Niedermayer
e71ca21f30
avcodec/motion_est_template: Fix undefined behavior in small_diamond_search()
...
Fixes: asan_heap-oob_394322e_138_cov_4265020547_CVPCMNL1_SVA_C.264
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-07-10 13:42:41 +02:00
Alexandra Hájková
872fab4a3d
asfdec: Fix reading from the pipe
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-10 13:25:02 +02:00
Paul B Mahol
ae55fc82a8
avfilter/vf_removegrain: clip to uint16 instead to uint8
...
This is how original filter behaves.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-10 10:50:28 +00:00
Michael Niedermayer
7b404c94f3
avcodec/libopenh264enc: Do not truncate frame rate
...
Suggested-by: Gregory J Wolfe <gregory.wolfe@kodakalaris.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-10 04:19:07 +02:00
Michael Niedermayer
033dc39c56
Merge commit '67c884eb07c7e9f2cb72bb8d447d945e5ac8cac7'
...
* commit '67c884eb07c7e9f2cb72bb8d447d945e5ac8cac7':
libvpx: Add the library header
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-10 02:32:08 +02:00
Michael Niedermayer
60c6959b6b
Merge commit '461b45efd04859b2672238bc8a6ecab9e9a14948'
...
* commit '461b45efd04859b2672238bc8a6ecab9e9a14948':
lavc: Add nvenc.h to the skipheader
Conflicts:
libavcodec/Makefile
No change as there is no nvenc.h in FFmpeg
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-10 02:15:54 +02:00
Ivan Uskov
5985316fba
libavcodec/qsvenc.c: improving handling for return codes of MFXVideoENCODE_EncodeFrameAsync
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-10 01:26:16 +02:00
Michael Niedermayer
b160fc290c
avcodec/mpegvideo: Clear pointers in ff_mpv_common_init()
...
This ensures that no stale pointers leak through on any path
Fixes: signal_sigsegv_c3097a_991_xtrem_e2_m64q15_a32sxx.3gp
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 22:47:16 +02:00
Vittorio Giovara
67c884eb07
libvpx: Add the library header
...
Unbreak make checkheaders
2015-07-09 21:36:19 +02:00
Luca Barbato
461b45efd0
lavc: Add nvenc.h to the skipheader
...
Unbreak make checkheaders
2015-07-09 21:34:57 +02:00
Paul B Mahol
ba0b4e53a5
fate: add removegrain tests
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-09 18:28:29 +00:00
Carl Eugen Hoyos
e786e96be7
lavf/rtpenc_jpeg: Error out for non-standard Huffman tables.
...
Related to ticket #3823 .
2015-07-09 20:03:38 +02:00
Carl Eugen Hoyos
ad7c5cba4e
lavf/rtpenc_jpeg: Do not check the table number when checking precision.
2015-07-09 20:00:31 +02:00
Carl Eugen Hoyos
2c7f7a690f
ffmpeg: Use av_log to print benchmark output.
2015-07-09 19:58:22 +02:00
Carl Eugen Hoyos
6253f511e0
Cosmetics: Reindent after last commit.
2015-07-09 19:52:06 +02:00
Carl Eugen Hoyos
da46370e94
lavf/matroskaenc: Do not needlessly allocate memory for cuepoints.
...
Fixes ticket #4690 .
2015-07-09 19:49:37 +02:00
Ivan Uskov
dbf8352a2e
libavcodec/qsvenc.c: Fix for too agressive height alignment during frame encoding which may be reason of superflous frame copying.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 17:46:18 +02:00
Michael Niedermayer
7ee935ba5c
avcodec/qsvenc_hevc: Attempt to fix error: too few arguments to function ff_hevc_extract_rbsp
...
Found-by: Ivan Uskov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 16:51:51 +02:00
Jovan Zelincevic
f21b4472ef
libavcodec: Implementation of AAC_fixed_decoder (LC-module) [4/4]
...
Build system modified
There are several warnings occurring during build after this patch is
applied. The cause of most of these warnings is in that some definitions
needed here are logical part of sbr module and are added in later patches.
When this patches are applied these warnings stop occurring.
The only warning that is added here and is not fixed with later patches
is warning that warns that type mismatch for table ff_aac_eld_window_480.
The reason for this warning is in that ER AAC ELD 480 is not integrated in
to the fixed point implementation at this moment and there is no fixed point
version of this table.
Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 14:41:41 +02:00
Djordje Pesut
b04f46cb4b
libavcodec: Implementation of AAC_fixed_decoder (LC-module) [3/4]
...
Add fixed point implementation
Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 14:41:31 +02:00
Jovan Zelincevic
08be74ac81
libavcodec: Implementation of AAC_fixed_decoder (LC-module) [2/4]
...
Add fixed point implementation of functions for generating tables
Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 14:41:19 +02:00
Jovan Zelincevic
f497a9e84e
libavcodec: Implementation of AAC_fixed_decoder (LC-module) [1/4]
...
Move existing code to the new template files
Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 14:35:44 +02:00
Michael Niedermayer
15893adbdb
avcodec/hevc_ps: Remove gotos from ff_hevc_parse_sps()
...
They are currently unnecessary
Found-by: James Almer <jamrial@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 13:02:07 +02:00
Michael Niedermayer
4a5074d798
Merge commit '84b223cc6d6ed4cc8bd295457a90f7c94a9dd784'
...
* commit '84b223cc6d6ed4cc8bd295457a90f7c94a9dd784':
configure: Make the new qsv encoder depend on libmfx
Conflicts:
configure
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 12:40:31 +02:00
Michael Niedermayer
2ecbf44f21
Merge commit 'd1a6cb195f610978ba5d2351e60f938f7f261d59'
...
* commit 'd1a6cb195f610978ba5d2351e60f938f7f261d59':
x86: Serialize rdtsc in read_time()
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 12:28:09 +02:00
Michael Niedermayer
7e85727b98
Merge commit '40af330adf7fde8073271cf2b41ff9adc4c2bba9'
...
* commit '40af330adf7fde8073271cf2b41ff9adc4c2bba9':
avconv: vda: Unlock the pixel buffer once it is accessed
See: c06fdacc3d
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 12:19:34 +02:00
Michael Niedermayer
8d4460f1bb
Merge commit '8fcd121b823caeadbe7597c9ae9229f6f164f949'
...
* commit '8fcd121b823caeadbe7597c9ae9229f6f164f949':
doc: Use the succinct syntax for the channelmap example
Conflicts:
doc/filters.texi
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 12:11:10 +02:00
Michael Niedermayer
7c502935ec
configure: Fix build without libmfx
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 12:00:32 +02:00
Michael Niedermayer
7871eb4361
Merge commit '66acb76bb0492b263215ca9b4d927a7be39ace02'
...
* commit '66acb76bb0492b263215ca9b4d927a7be39ace02':
lavc: add Intel libmfx-based HEVC encoder
Conflicts:
Changelog
configure
libavcodec/Makefile
libavcodec/allcodecs.c
libavcodec/qsv.c
libavcodec/qsvenc.c
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 11:53:14 +02:00
Michael Niedermayer
587980eb7a
configure: Fix build without libmfx
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 11:27:04 +02:00
Michael Niedermayer
96ee6b9962
Merge commit '3a85397e8bb477eb34678d9edc52893f57003226'
...
* commit '3a85397e8bb477eb34678d9edc52893f57003226':
lavc: add Intel libmfx-based MPEG2 encoder
Conflicts:
Changelog
configure
libavcodec/allcodecs.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 11:17:12 +02:00
Michael Niedermayer
07ae8fa20e
Merge commit '69ab9f53f901eac6a649e22d28cf093357870627'
...
* commit '69ab9f53f901eac6a649e22d28cf093357870627':
hevc: split bitstream unescaping to a separate file
Conflicts:
libavcodec/Makefile
libavcodec/hevc.c
See: afa93d198a
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 05:06:48 +02:00
Michael Niedermayer
1dacf26964
avcodec/hevc_ps: Do not return success on failures in ff_hevc_parse_sps()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 04:50:05 +02:00
Michael Niedermayer
1d4194e696
Merge commit 'fd124d8357b1becfde3ac8d5e3320127cf97a5b7'
...
* commit 'fd124d8357b1becfde3ac8d5e3320127cf97a5b7':
hevc_ps: split the code for parsing the SPS and exporting it into the context
Conflicts:
libavcodec/hevc.c
libavcodec/hevc_ps.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 04:50:00 +02:00
James Almer
c118101662
avcodev/libdcadec: implement request_channel_layout
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-08 23:04:17 -03:00
Michael Niedermayer
b457da4ce2
Merge commit '0e7c0ec344f542e68e3cc9680e8d41dffeffdb4e'
...
* commit '0e7c0ec344f542e68e3cc9680e8d41dffeffdb4e':
lavf/hevc: pad the RBSP buffer as required by the bistream reader
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 03:54:31 +02:00
Chris Watkins
4f5c2e651a
oggparsedirac: check return value of init_get_bits
...
If init_get_bits fails the GetBitContext is invalid and must not be
used. Check the return value in dirac_header and propogate the error.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 03:46:37 +02:00
Ivan Uskov
b409748bc4
libavcodec/qsvenc.c: fix incorrect loop condition.
...
For example, the encoder may return MFX_WRN_INCOMPATIBLE_VIDEO_PARAM warning
i.e. ret==5 old loop implementation will repeat several times until output buffer
overflow. New implementation explicitly uses loop only for device busy case.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 02:25:39 +02:00
compn
0054d5ac02
avformat/movenc: fix mime-types in movenc.c
...
https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/CreatingContentforSafarioniPhone/CreatingContentforSafarioniPhone.html
says video/mp4
suggested by BBB on irc.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 02:17:35 +02:00
Michael Niedermayer
4a2bcdb28b
Merge commit '1761ab838c75223a6b97d8c0720d09275374c53d'
...
* commit '1761ab838c75223a6b97d8c0720d09275374c53d':
lavc: Deprecate avctx.rc_strategy
Conflicts:
libavcodec/mpegvideo.h
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 01:17:49 +02:00
Michael Niedermayer
edfcbf7c83
Merge commit '02b7c630875c0bc63cee5ec597aa33baf9bf4e20'
...
* commit '02b7c630875c0bc63cee5ec597aa33baf9bf4e20':
h261: Signal freeze picture release for intra frames
Conflicts:
tests/ref/vsynth/vsynth1-h261
tests/ref/vsynth/vsynth2-h261
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 00:49:20 +02:00
Michael Niedermayer
a137e50ee5
Merge commit 'dc1de0b958836545339611e9c050a1d4fdded263'
...
* commit 'dc1de0b958836545339611e9c050a1d4fdded263':
h261: Set 'still image mode off' in picture header
Conflicts:
tests/ref/vsynth/vsynth1-h261
tests/ref/vsynth/vsynth2-h261
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 00:33:52 +02:00
Michael Niedermayer
fcc117af30
Merge commit 'c8b8271379b200c5c6fa89ca995f90f97f55c2c5'
...
* commit 'c8b8271379b200c5c6fa89ca995f90f97f55c2c5':
xcbgrab: Explicitly include xcb/shape.h
See: 54170a33c2
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 00:21:28 +02:00
Luca Barbato
84b223cc6d
configure: Make the new qsv encoder depend on libmfx
...
Found-by: kropping
2015-07-09 00:20:27 +02:00
Michael Niedermayer
17498b70d8
Merge commit '161a301d44274645c2272855dac3e4664f935603'
...
* commit '161a301d44274645c2272855dac3e4664f935603':
mpjpeg: Write the Content-length
Conflicts:
libavformat/mpjpeg.c
See: 0d2f4eedc8
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-09 00:11:32 +02:00
Henrik Gramner
d1a6cb195f
x86: Serialize rdtsc in read_time()
...
Improves the accuracy of measurements, especially in short sections.
To quote the Intel 64 and IA-32 Architectures Software Developer's Manual:
"The RDTSC instruction is not a serializing instruction. It does not necessarily
wait until all previous instructions have been executed before reading the counter.
Similarly, subsequent instructions may begin execution before the read operation
is performed. If software requires RDTSC to be executed only after all previous
instructions have completed locally, it can either use RDTSCP (if the processor
supports that instruction) or execute the sequence LFENCE;RDTSC."
SSE2 is a requirement for lfence so only use it on SSE2-capable systems.
Prefer lfence;rdtsc over rdtscp since rdtscp is supported on fewer systems.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-09 00:10:13 +02:00
Sebastien Zwickert
40af330adf
avconv: vda: Unlock the pixel buffer once it is accessed
...
Avoid possible issues with memmapped hardware buffers in
case VDA is not doing a conversion on behalf of the user
and make the code more proper as working example.
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-09 00:10:13 +02:00
Luca Barbato
8fcd121b82
doc: Use the succinct syntax for the channelmap example
...
Mixing succinct and long syntax does not work.
2015-07-09 00:09:53 +02:00
Michael Niedermayer
2a33dc2cdf
Merge commit 'd09b4cce21cdad5ef2855698395ffd6e37445212'
...
* commit 'd09b4cce21cdad5ef2855698395ffd6e37445212':
mpjpeg: Simplify using avio_printf
Conflicts:
libavformat/mpjpeg.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-08 23:53:08 +02:00
Anton Khirnov
66acb76bb0
lavc: add Intel libmfx-based HEVC encoder
2015-07-08 23:40:11 +02:00
Anton Khirnov
3a85397e8b
lavc: add Intel libmfx-based MPEG2 encoder
2015-07-08 23:39:28 +02:00
Anton Khirnov
69ab9f53f9
hevc: split bitstream unescaping to a separate file
...
It will be useful in the QSV HEVC encoder.
2015-07-08 23:38:32 +02:00
Anton Khirnov
fd124d8357
hevc_ps: split the code for parsing the SPS and exporting it into the context
...
This will be useful in the later commits, where we want to parse an SPS
without having a whole decoding context.
2015-07-08 23:36:22 +02:00
Anton Khirnov
0e7c0ec344
lavf/hevc: pad the RBSP buffer as required by the bistream reader
2015-07-08 23:36:10 +02:00
Paul B Mahol
91748662bc
avfilter: add removegrain
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-08 16:02:34 +00:00
Michael Niedermayer
3c63d06d81
avcodec/h264_slice: Fix container cropping
...
Fixes out of array read
Fixes: asan_heap-oob_394322e_138_cov_4265020547_CVPCMNL1_SVA_C.264
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-08 17:50:05 +02:00
Vittorio Giovara
1761ab838c
lavc: Deprecate avctx.rc_strategy
...
Only used by libxvid in ratecontrol module, so move it to a codec
private option.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-08 16:36:39 +01:00
Michael Niedermayer
80e42387dc
avcodec/g2meet: Clear pointers after deallocation
...
Fixes double free
Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-08 15:38:37 +02:00
Ganesh Ajjanagadde
e34a3468f2
build: add LDLIBFLAGS
...
Fixes Ticket4673
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-08 14:35:02 +02:00
Michael Niedermayer
e83ffb48ac
avcodec/utils: Check values in apply_param_change()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-08 12:06:17 +02:00
Michael Niedermayer
656e9a68c4
avformat/swfdec: Fix "}else" style
...
Found-by: durandal_170
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-08 12:06:17 +02:00
Paul B Mahol
7efe81a813
avfilter/vf_colormatrix: add yuv444p support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-08 05:40:03 +00:00
Michael Niedermayer
6a1204a1a4
avformat/swfdec: Do not error out on pixel format changes
...
Instead print an error and continue
Fixes Ticket4702
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-08 02:43:02 +02:00
Michael Niedermayer
b8c438e762
videodsp: assert that linesize is larger than width
...
Suggested-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-08 01:32:04 +02:00
Andreas Cadhalpun
42e7a5b3c7
wmalosslessdec: reset frame->nb_samples on packet loss
...
Otherwise a frame with non-zero nb_samples but without any data can be
returned.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-07-07 23:35:00 +02:00
Andreas Cadhalpun
f9020d514e
wmalosslessdec: avoid reading 0 bits with get_bits
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-07-07 23:34:28 +02:00
Rostislav Pehlivanov
80db686a69
aacenc: fix option descriptions
...
Since the new PNS implementation has been merged and is no longer considered
proof of concept (as it's much more complex and better than the previous), change
the comments to reflect that. We need people testing it (since all AAC profiles
require it to be on by default) and having it tagged as proof of concept might drive some away.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-07 22:56:30 +02:00
James Almer
7d5ab16506
avcodec/libdcadec: export matrix encoding side data
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-07 16:18:46 -03:00
Chris Watkins
55e29ceec8
Put a space between string literals and macros.
...
When compiling libavutil/internal.h as C++11, clang warns that a space
is required between a string literal and an identifier. Put spaces
in concatenations of string literals and EXTERN_PREFIX.
Signed-off-by: Chris Watkins <watk@chromium.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-07 21:10:15 +02:00
周晓勇
09883876ca
configure: loongson enabled local aligned 32
...
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-07 21:10:09 +02:00
Stian Selnes
02b7c63087
h261: Signal freeze picture release for intra frames
...
Freeze picture release should be set to 1 when we're responding to a
fast update request. For simplicity we set it for all intra frames,
including those that starts a GOP.
Fixes issue where Tandberg MXP1700 does not recover from packet loss
state since it's waiting for the freeze picture relase indication.
Bug-Id: 873
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-07 15:11:15 +02:00
Stian Selnes
dc1de0b958
h261: Set 'still image mode off' in picture header
...
Ref H.261 recommendation section 4.2.1.3, setting the still image flag
to 1 disables still image mode. Some decoders require this in order to
decode the bitstream as normal video.
Fixes H.261 calls to Cisco E20.
Also, reserved (aka spare) bits should be set to 1 unless specified
otherwise.
Bug-Id: 872
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-07 15:04:55 +02:00
Shivraj Patil
d12f76ffbb
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for idctdsp functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for idctdsp functions in new file idctdsp_msa.c and simple_idct_msa.c
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-07 14:35:15 +02:00
Ivan Uskov
9c95734e1c
libavcodec/qsv.c: Linux-only code part has been moved to separate function in order to avoid the "ISO C90 forbids mixed declarations and code" compiler warning.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-07 14:03:59 +02:00
Carl Eugen Hoyos
1d5edad8cc
lavf/mpegtsenc: Only fail aac muxing if the first frame is invalid.
...
Fixes ticket #3957 .
2015-07-07 10:44:46 +02:00
周晓勇
d44cf5ef42
configure: add loongson2 cpu support
...
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-07 03:47:06 +02:00
周晓勇
387cbe018c
use mmi instead of loongson3 as simd-optimization flag
...
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-07 03:46:57 +02:00
周晓勇
72aaca7488
avcodec: loongson remove useless macros in mipsfpu optimization
...
Loongson has disabled all mipsfpu optimization as fate-test faild.
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-06 21:16:53 +02:00
Luca Barbato
c8b8271379
xcbgrab: Explicitly include xcb/shape.h
...
Found-By: Cheristheus
2015-07-06 20:00:34 +02:00
Michael Niedermayer
a3a61d4663
avcodec/lpc: Fix lpc_apply_welch_window_c() for odd len
...
Also removes assert
this fixes an assertion failure on non-x86
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-06 19:11:42 +02:00
Shivraj Patil
709bb45c66
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for me_cmp functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for me_cmp functions in new file me_cmp_msa.c
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-06 18:25:14 +02:00
Shivraj Patil
2f3f98af2b
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for mpegvideoencdsp functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for mpegvideoencdsp functions in new file mpegvideoencdsp_msa.c
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-06 18:25:01 +02:00
Ivan Uskov
115c14c3b6
libavcodec/qsvenc.c: A warning message when library will work at partial hardware acceleration.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-06 17:39:08 +02:00
Rodger Combs
2375a85c36
ffmpeg_opt: allow the user to ignore unused stream maps
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-06 15:40:13 +02:00
Kieran Kunhya
8234f0e3b4
avcodec: Add support for Closed Caption export in h264
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-06 15:25:22 +02:00
Ivan Uskov
38402754b9
libavcodec/qsvenc.c: More correct selection of alignment of a frame height depending whether an encoded sequence progressive or not.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-06 15:13:08 +02:00
Marton Balint
859731d642
lavc/utils: get rid of add_metadata_from_side_data forward declaration
...
Signed-off-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-06 01:02:35 +02:00
Marton Balint
9476c4c67e
lavc/utils: call add_metadata_from_side_data in ff_init_buffer_info
...
This should ensure that each frame get its metadata from its proper packet
regardless of frame delays caused by reordering or threading.
Signed-off-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-06 00:39:29 +02:00
Marton Balint
10b6a83fb3
lavc/utils: change add_metadata_from_side_data to accept avpacket
...
Signed-off-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-06 00:08:48 +02:00
Marton Balint
3a19fe0048
lavc/utils: remove redundant call to ff_init_buffer_info
...
It does the same as calling ff_decode_frame_props.
Signed-off-by: Marton Balint <cus@passwd.hu >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-06 00:07:55 +02:00
Carl Eugen Hoyos
97fa0f37fe
lavc/j2kenc: Enable yuv42x and yuv41x encoding.
...
Fixes ticket #535 .
Fixes ticket #4524 .
2015-07-06 00:06:54 +02:00
James Almer
e43ea1cbb2
doc/texi2pod: fix an unescaped left brace
...
This silences some deprecation warnings
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-07-05 19:02:48 -03:00
Michael Niedermayer
c0db6320a6
avcodec/avuienc: Use ff_alloc_packet()
...
This should be faster in theory for AVUI, no speed difference
meassurable though
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-05 23:05:25 +02:00
Michael Niedermayer
0e7bbdbeaf
avcodec/avuienc: Initialize output data
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-05 23:05:25 +02:00
Michael Niedermayer
47496eb97c
avcodec/rawenc: Use ff_alloc_packet() instead of ff_alloc_packet2()
...
the later is not optimal when the buffer size is well known at allocation time
This avoids a memcpy()
Overall 2.5% speedup with a random 1920x1080 video
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-05 20:00:15 +02:00
Rostislav Pehlivanov
e8576dc8df
aacenc: implement Intensity Stereo encoding support
...
This commit implements intensity stereo coding support
to the native aac encoder. This is a way to increase the efficiency
of the encoder by zeroing the right channel's spectral coefficients
(in a channel pair) and rederiving them in the decoder using information
from the scalefactor indices of special band types. This commit
confomrs to the official ISO 13818-7 specifications, although due to
their ambiguity certain deviations have been taken to ensure maximum
sound quality. This commit has been extensively tested and has shown
to not result in audiable audio artifacts unless in extreme cases.
This commit also adds an option, aac_is, which has the value of
0 by default. Intensity Stereo is part of the scalable aac profile
and is thus non-default.
The way IS coding works is that it rederives the right channel's
spectral coefficients from the left channel via the scalefactor
index values left in the right channel. Since an entire band's
spectral coefficients do not need to be coded, the encoder's
efficiency jumps up and it unzeroes some high frequency values
which it previously did not have enough bits to encode. That way
less information is lost than the information lost by rederiving
the spectral coefficients with some error. This is why the
filesize of files encoded with IS do not decrease significantly.
Users wishing that IS coding should reduce filesize are expected
to reduce their encoding bitrates appropriately.
This is V2 of the commit. The old version did not mark ms_mask as
0 since M/S and IS coding are incompactible, which resulted in
distortions with M/S coding enabled. This version also improves
phase detection by measuring it for every spectral coefficient in
the band and using a simple majority rule to determine whether the
coefficients are in or out of phase. Also, the energy values per
spectral coefficient were changed as to reflect the
official specifications.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-05 16:59:26 +02:00
Rostislav Pehlivanov
0b233900fa
aacenc: add support for coding of IS spectral coefficients
...
This commit adds support for the coding of intensity stereo spectral
coefficients. It also fixes the Mid/Side coding of band_types higher
than RESERVED_BT (M/S must not be applied to their spectral coefficients,
but marking M/S as present in encode_ms_info() is okay). Much
of the changes here were taken from the decoder and inverted.
This commit does not change the functionality of the decoder as the
previous patch in this series zeroes ms_mask and is_mask.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-05 16:58:37 +02:00
Rostislav Pehlivanov
38fd4c2e66
aaccoder: add a new perceptual noise substitution implementation
...
This commit finalizes the PNS implementation previously added to the encoder
by moving it to a seperate function search_for_pns() and thus making it
coder-generic. This new implementation makes use of the spread field of
the psy bands and the lambda quality feedback paremeter. The spread of the
spectrum in a band prevents PNS from being used excessively and thus preserve
more phase information in high frequencies. The lambda parameter allows
the number of PNS-marked bands to vary based on the lambda parameter and the
amount of bits available, making better choices on which bands are to be marked
as noise. Comparisons with the previous PNS implementation can be found
here: https://trac.ffmpeg.org/attachment/wiki/Encode/AAC/
This is V2 of the patch, the changes from the previous version being that this
version uses the new band->spread metric from aacpsy and normalizes the
energy using the group size. These changes were suggested by Claudio Freire
on the mailing list. Another change is the use of lambda to alter the
frequency threshold. This change makes the actual threshold frequencies
vary between +-2Khz of what's specified, depending on frame encoding performance.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-05 16:39:06 +02:00
Rostislav Pehlivanov
117b15f4a8
aaccoder: remove previous PNS implementation from twoloop
...
This commit undoes commit c5d4f87e81
and removes PNS band marking from the twoloop coder, which has
been reimplemented in a better way in this series of patches.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-05 16:38:32 +02:00
Rostislav Pehlivanov
e06578e392
aacenc: use the new function for setting special band scalefactor indices
...
This commit enables the function added with commit 7c10b87 and uses that
new function for setting any special scalefactor indices. This commit does
not change the behaviour of the encoder since no bands are being marked as
either NOISE_BT(due to the previous PNS implementation removed in the
previous commit) or INTENSITY_BT2/INTENSITY_BT.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-05 16:36:38 +02:00
Philip Langdale
671bdd4b09
avcodec/nvenc: Add support for H.264 High 444 Predictive encoding
...
Newer versions of the nvenc hardware support The High 444 Predictive profile
of H.264, and can also do lossless encoding under this profile if desired.
This change introduces support for the profile, and exposes the appropriate
presets for requesting lossless encoding.
I tested lossless by generating a baseline sample with testsrc converted
to raw yuv444p, then encoded the sample with nvenc, then did a framemd5
comparision of both the raw video and the nvenc encode. The framemd5
reports were identical.
Signed-off-by: Philip Langdale <philipl@overt.org >
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org >
2015-07-05 13:51:56 +02:00
Frank Heckenbach
161a301d44
mpjpeg: Write the Content-length
2015-07-04 00:51:03 +02:00
Luca Barbato
d09b4cce21
mpjpeg: Simplify using avio_printf
2015-07-04 00:46:44 +02:00
Vittorio Giovara
f046c3b5ac
lavc: Move deprecation warning disabling to files including the table
...
Unbreak build from 7a5902c556 .
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-03 21:02:50 +02:00
Paul B Mahol
5233f2534c
avformat/yuv4mpegenc: use avio_printf()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-03 18:43:21 +00:00
Paul B Mahol
e658b1036c
avfilter/avf_showvolume: make it possible to use current channel number in color expression
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-03 18:43:21 +00:00
Paul B Mahol
c3a5702ebf
lavfi: add (a)drawgraph filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-03 18:43:21 +00:00
George Boyle
4385a1ce8f
fate/api-tests: Tests that need samples should only run if SAMPLES is set
...
This change fixes a bug where a test that required a sample was being included
in the suite when SAMPLES was not set. It also improves the consistency of
variable names relating to the API tests.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-04 02:15:16 +02:00
Kevin Coyle
1262711388
YUV->BGR32 MMX support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-04 00:03:45 +02:00
Michael Niedermayer
8255b14c68
swscale/output: fix input indexing in yuv2ya8_2_c()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-04 00:03:45 +02:00
Michael Niedermayer
ab80d3fb3a
swscale/output: fix null pointer dereference in yuv2ya8_2_c()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 23:03:25 +02:00
Michael Niedermayer
3b03186d56
Merge commit 'f046c3b5ac36848cce824b008e0347c621523041'
...
* commit 'f046c3b5ac36848cce824b008e0347c621523041':
lavc: Move deprecation warning disabling to files including the table
lavc: Disable deprectation warnings coming from options table
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 21:40:47 +02:00
Michael Niedermayer
d563e13a7c
Merge commit '832129431fd5c693b12c32a1563944c631feaf36'
...
* commit '832129431fd5c693b12c32a1563944c631feaf36':
lavu: Add version information for av_version_info()
Conflicts:
doc/APIchanges
libavutil/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 21:06:46 +02:00
Paul B Mahol
866404df2d
avfilter/vf_lut: fix oversight
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-03 16:58:56 +00:00
Paul B Mahol
94cfb6db7d
avcodec/shorten: use init_get_bits8()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-03 16:57:11 +00:00
Paul B Mahol
c0d676f977
avfilter/af_astats: implement recalculation of stats after each X frames
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-03 16:34:28 +00:00
Paul B Mahol
d3836b603e
avfilter/af_astats: export metadata
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-03 16:34:28 +00:00
Michael Niedermayer
9f653e6d36
avcodec/j2kenc: Support user specified tile dimensions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 18:23:08 +02:00
Michael Niedermayer
d554715f67
avcodec/jpeg2000dec: Fix decoding of subsampled multi tile images
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 18:08:01 +02:00
Rostislav Pehlivanov
9f4f578704
aacenc: reset marked IS and M/S bands upon frame encoding
...
This commit resets any bands marked as M/S or IS upon encoding a frame.
This is needed because the arrays may contain some residual information
upon allocation on startup and because there isn't any mechanism to
reset the arrays once the frame has been encoded.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 16:17:16 +02:00
Vittorio Giovara
7a5902c556
lavc: Disable deprectation warnings coming from options table
2015-07-03 14:30:17 +01:00
Vittorio Giovara
832129431f
lavu: Add version information for av_version_info()
...
Move the APIchange entry at the top.
2015-07-03 14:30:11 +01:00
Rostislav Pehlivanov
57848ef3c6
aaccoder: fix M/S coding
...
There were some mistakes in the code for M/S stereo, this commit fixes them.
The start variable was not being reset for every window and every access to
the coefficients was incorrect as well. This fixes that by properly
addressing the coefficients using both windows and setting the start on every window to zero.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 13:27:25 +02:00
Rostislav Pehlivanov
8e607c747e
aacpsy: use a different metric for the spread of a band
...
This commit modifies 02dbed6 to use band->active_lines to better gauge how much information is contained within a single band and thus allow the perceptual noise subsitution to more accurately determine which bands to code as noise. The spread[w+g] used before this patch behaved more like a low-pass filter for PNS band_types, which could mistakingly mark some low frequency bands as noise.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 13:17:57 +02:00
Michael Niedermayer
8f4cfda972
avutil: add missing bswap include
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 13:17:57 +02:00
Paul B Mahol
b74ebd09c7
avfilter/vf_lut: >8 bit depth planar yuv support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-03 09:29:06 +00:00
Michael Niedermayer
daff49ccf3
Merge commit '80f955c90867561dcce769216bc497e13281eb38'
...
* commit '80f955c90867561dcce769216bc497e13281eb38':
vda: Check the correct pointer for buffer allocation
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 04:36:31 +02:00
Michael Niedermayer
3ffa385801
Merge commit '76d4c62734fbb8a9f497712812f30ff5c27e787f'
...
* commit '76d4c62734fbb8a9f497712812f30ff5c27e787f':
webp: Make sure enough bytes are available
Conflicts:
libavcodec/webp.c
See: 0762152f7a
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 04:07:16 +02:00
Andreas Cadhalpun
0762152f7a
webp: fix infinite loop in webp_decode_frame
...
The loop always needs at least 8 bytes for chunk_type and chunk_size.
If fewer are left, bytestream2_get_le32 just returns 0 without
reading any bytes, leading to an infinite loop.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 04:06:19 +02:00
Michael Niedermayer
30ffbeb04a
Merge commit '016cac75c6061a1c03f812ddf258b8baefe70b00'
...
* commit '016cac75c6061a1c03f812ddf258b8baefe70b00':
asfdec: prevent the infinite loop in detect unknown_subobject
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 03:58:33 +02:00
Michael Niedermayer
7755a57440
Merge commit '9752d2e6cc9b9e8070ec515db8ed8374683d0856'
...
* commit '9752d2e6cc9b9e8070ec515db8ed8374683d0856':
asfdec: prevent possible memory leak in the asf_read_metadata_obj
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 03:51:00 +02:00
Michael Niedermayer
a8ab64d2f7
Merge commit '910247f1720c6aae422723c05dac6d0b19f20bec'
...
* commit '910247f1720c6aae422723c05dac6d0b19f20bec':
lavc: Deprecate avctx.{inter,intra}_quant_bias
Conflicts:
libavcodec/mpegvideo_enc.c
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 03:40:22 +02:00
Michael Niedermayer
e15e78f391
Merge commit '1316df7aa98c4784f190d107206d0bb12c590b89'
...
* commit '1316df7aa98c4784f190d107206d0bb12c590b89':
lavu: add an API function to return the Libav version string
Conflicts:
.gitignore
Makefile
cmdutils.c
doc/APIchanges
libavutil/avutil.h
libavutil/utils.c
See: f91126643a
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-03 03:22:48 +02:00
Luca Barbato
80f955c908
vda: Check the correct pointer for buffer allocation
...
CC: libav-stable@libav.org
Found-By: kropping
2015-07-03 01:58:32 +02:00
Andreas Cadhalpun
76d4c62734
webp: Make sure enough bytes are available
...
Every chunk needs at least 8 bytes for chunk_type and chunk_size.
Prevent a possible infinite loop.
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-03 01:50:09 +02:00
Alexandra Hájková
016cac75c6
asfdec: prevent the infinite loop in detect unknown_subobject
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-03 01:50:09 +02:00
Alexandra Hájková
9752d2e6cc
asfdec: prevent possible memory leak in the asf_read_metadata_obj
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-03 01:50:09 +02:00
Vittorio Giovara
910247f172
lavc: Deprecate avctx.{inter,intra}_quant_bias
...
They are used by dnxhd and mpegvideo_enc exclusively, move them to codec
private options instead.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-07-02 22:37:59 +01:00
wm4
1316df7aa9
lavu: add an API function to return the Libav version string
...
This returns something like "v12_dev0-1332-g333a27c". This is much more
useful than the individual library versions, of which there are too
many, and which are very hard to map back to releases or git commits.
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2015-07-02 23:22:53 +02:00
Paul B Mahol
2778fdbe54
swscale: implement YA8 output
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-02 17:36:05 +00:00
Andreas Cadhalpun
d0eff8857c
wavpack: limit extra_bits to 32 and use get_bits_long
...
More than 32 bits can't be stored in an integer and get_bits should not
be used with more than 25 bits.
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-07-02 23:31:16 +02:00
Paul B Mahol
96953e2ef6
avfilter/vf_mpdecimate: remove packed formats
...
Packed formats are not supported.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-02 15:36:00 +00:00
Paul B Mahol
7ff5a345a4
avfilter: use AVFILTER_DEFINE_CLASS()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-02 15:36:00 +00:00
Ivan Uskov
6e5864ab29
avcodec/qsvenc_h264: Change the set of performance presets to match with the MFX library constants.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-02 19:16:41 +02:00
Michael Niedermayer
c9220d5b06
avcodec/mjpegdec: Reorder operations to avoid undefined behavior
...
Fixes: asan_heap-oob_1dd60fd_267_cov_2954683513_5baad44ca4702949724234e35c5bb341.jpg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-02 18:53:32 +02:00
Michael Niedermayer
9dc0bac971
avcodec/motion_est_template: Fix undefined shifts in CHECK_MV()
...
Fixes:asan_heap-oob_4d5bb0_2295_cov_3374722539_hotel_california_ra5.1_640x480_30s.rmvb
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-02 18:43:03 +02:00
Ivan Uskov
db89f45535
avcodec/qsv: Extending QSV/MFX session initialization for the linux platform where a display handle is required.
...
Now ff_qsv_init_internal_session() is able
to find appropriate display handle under linux using VAAPI.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-02 15:05:56 +02:00
Stefano Sabatini
8cbce1001d
doc/muxers/segment: fix formatting of segment_list_type option
...
Place @item entry at the right point, remove duplicated description.
2015-07-02 11:06:23 +02:00
Michael Niedermayer
1f69b7baa1
avformat/asfdec_f: Fix memleak
...
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-02 09:42:33 +02:00
John Adlum
72cad80016
avformat/asfdec_f: Add ASFDataType, use named types for metadata
...
This is based on asfdec_o.c, but uses a proper type instead of defines
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-02 04:58:27 +02:00
John Adlum
59fffefdb4
avformat/asfdec_f: Use dynamic allocation in asf_read_metadata() instead of a fixed size buffer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-02 04:58:23 +02:00
John Adlum
c8eca438a9
avformat/asfdec_f: factor error checking out of main header parsing loop
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-02 04:58:18 +02:00
rogerdpack
a1c03b9d58
ffmpeg_filter: log more information on failure to init simple filter graph
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-02 04:56:10 +02:00
Michael Niedermayer
03b2b40fd7
Merge commit 'a31c4b2cbef9aee15910fc3df52519aef46760de'
...
* commit 'a31c4b2cbef9aee15910fc3df52519aef46760de':
fate-g2m3: disable the audio stream
Conflicts:
tests/ref/fate/g2m3
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-02 00:34:24 +02:00
Michael Niedermayer
838c5f3df7
avformat/utils: Redesign scoring in av_find_default_stream_index()
...
This avoids empty streams from being selected if a equivalent non empty one is available
The new system is also clearer and more systematic
This may need finetuning, which should be easy to do ...
Fixes Ticket2687
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 22:51:48 +02:00
Michael Niedermayer
52c5521877
ffmpeg_opt: Favor streams that had packets
...
Fixes Thailand-Wave.wmv without explicitly specifying a stream
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 22:43:26 +02:00
Paul B Mahol
5165c600eb
avformat/rtmpproto: increase hardcoded url/path lengths
...
Fixes #4103 .
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-01 20:03:26 +00:00
Janne Grunau
a31c4b2cbe
fate-g2m3: disable the audio stream
...
The audio decoder is not in fate-g2m3 dependencies and the wma2 decoder
is probably not bit-exact since it it float based.
2015-07-01 21:42:48 +02:00
Rodger Combs
c190fdf65d
lavu: Makefile: skip atomic.c if native atomics are available
...
This prevents a linker warning and skips a useless compilation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 21:40:16 +02:00
Michael Niedermayer
06a0d5ef5c
avcodec/h264dsp_template: Fix undefined shifts
...
Fixes: asan_heap-oob_17212bc_2243_cov_594210248_h264_TTA.mkv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 20:39:25 +02:00
Michael Niedermayer
ce81e47c91
avcodec/mss2: Fix integer overflow
...
This also simplifies the code
Fixes: signal_sigabrt_7ffff6ac8cc9_2943_cov_3588637614_mss2_speech.wmv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 20:30:48 +02:00
Michael Niedermayer
f8e038f9a0
Merge commit '4e0819310e2d2eff60be2d6df28335f0739712b9'
...
* commit '4e0819310e2d2eff60be2d6df28335f0739712b9':
elsdec: Replace EOVERFLOW with INVALIDDATA
See: dec728888f
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 19:53:59 +02:00
Michael Niedermayer
5142963b7d
Merge commit 'f91fe24e9bd6912c29bbb03d8afe878e045f9721'
...
* commit 'f91fe24e9bd6912c29bbb03d8afe878e045f9721':
g2meet: force simple idct for identical results over all fate configs
Conflicts:
tests/ref/fate/g2m3
tests/ref/fate/g2m4
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 19:31:34 +02:00
Paul B Mahol
17e6d7b400
avfilter/vf_extractplanes: use faster path for input formats with only one component
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-01 17:19:52 +00:00
Paul B Mahol
fc40cdbf49
avfilter/vf_extractplanes: rename misleading variable
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-01 17:19:52 +00:00
Paul B Mahol
be35b8b9a9
avfilter/vf_extractplanes: support more pixel formats
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-07-01 17:19:52 +00:00
Michael Niedermayer
6205143bb3
Merge commit '9eec23b8a7fd0f91827bbc3ed0792c39a8cc9a8a'
...
* commit '9eec23b8a7fd0f91827bbc3ed0792c39a8cc9a8a':
g2meet: use av_ceil_log2 instead of a custom function
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 19:09:55 +02:00
Michael Niedermayer
92c858ae66
Merge commit '4ccccd6c40a6d0ce85e96a6e37f558236e2a6a75'
...
* commit '4ccccd6c40a6d0ce85e96a6e37f558236e2a6a75':
g2meet: use an unsigned type for the djb hash
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 19:09:10 +02:00
Michael Niedermayer
9cf95654ac
Merge commit '007e27d363ba7d994019dc897dc9c39071bb204a'
...
* commit '007e27d363ba7d994019dc897dc9c39071bb204a':
avcodec: add missing CODEC_CAP_DR1 to codecs using get_buffer()
Conflicts:
libavcodec/atrac3plusdec.c
libavcodec/sp5xdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 18:58:01 +02:00
John Adlum
811008b8ee
avformat/asfdec_f: Assert that packet positions match in asf_read_pts()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 18:47:59 +02:00
John Adlum
28206b75e8
avformat/asfdec_f: Correct skip to key code
...
Fixes Ticket3978
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 18:47:54 +02:00
John Adlum
089a818bd3
avcodec/pthread_frame: Correcting typo of "occurred"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 18:47:44 +02:00
Shivraj Patil
2eb28e889d
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for mpegvideo functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for mpegvideo functions in new file mpegvideo_msa.c
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 17:32:47 +02:00
Michael Niedermayer
4e0819310e
elsdec: Replace EOVERFLOW with INVALIDDATA
...
EOVERFLOW is not available on all platforms.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 16:26:42 +01:00
Michael Niedermayer
53fd70579b
avcodec/h264_mvpred: Fix undefined shifts in MAP_F2F
...
Fixes: asan_heap-oob_17301a3_2100_cov_3226131691_ff_add_pixels_clamped_mmx.m2ts
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 15:53:15 +02:00
Michael Niedermayer
ac78014f0b
avcodec/motion_est: Fix some undefined shifts
...
Fixes: asan_heap-oob_1dd60fd_1049_cov_4200102444_P4250048.MOV
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 15:42:07 +02:00
Janne Grunau
f91fe24e9b
g2meet: force simple idct for identical results over all fate configs
2015-07-01 15:33:20 +02:00
wm4
f91126643a
lavu: add an API function to return the FFmpeg version string
...
This returns something like "N-73264-gb54ac84". This is much more useful
than the individual library versions, of which there are too much and
which are very hard to map back to releases or git commits.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 14:58:05 +02:00
Vadim Belov
db64af6395
avformat/concatdec: copy stream metadata when using concat
...
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 14:43:31 +02:00
Michael Niedermayer
60ec3007e6
avformat/nutdec: Check ff_gen_search() for failure
...
Fixes assertion failure
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 14:28:41 +02:00
Janne Grunau
9eec23b8a7
g2meet: use av_ceil_log2 instead of a custom function
2015-07-01 13:58:34 +02:00
Michael Niedermayer
4eee685a21
avcodec/motion_est: Fix undefined shifts in cmp_inline()
...
Fixes: signal_sigsegv_35eac16_2762_cov_2704249783_missing_frames.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 13:42:06 +02:00
Michael Niedermayer
0ea099ad3e
avcodec/mpegvideo_enc: fix undefined shifts in ff_dct_quantize_c()
...
Fixes: signal_sigsegv_35eac16_2762_cov_2704249783_missing_frames.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 13:40:36 +02:00
Janne Grunau
4ccccd6c40
g2meet: use an unsigned type for the djb hash
2015-07-01 13:34:50 +02:00
Michael Niedermayer
56fd4705c0
avcodec/motion_est_template: Fix undefined shifts in CHECK_MV_DIR()
...
Fixes: signal_sigsegv_2e64ee0_2762_cov_4170502227_missing_frames.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 12:21:56 +02:00
Janne Grunau
007e27d363
avcodec: add missing CODEC_CAP_DR1 to codecs using get_buffer()
2015-07-01 12:10:25 +02:00
Michael Niedermayer
2f8c81637c
avformat/matroskadec: Fix undefined shift in read_sint()
...
Fixes: asan_heap-oob_17212bc_2243_cov_594210248_h264_TTA.mkv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 12:00:43 +02:00
Michael Niedermayer
8750aef3d6
ffmpeg_opt: Fix forcing fourccs
...
Fixes Ticket4682
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 05:10:51 +02:00
Michael Niedermayer
dec728888f
avcodec/elsdec: Remove EOVERFLOW
...
EOVERFLOW is not available on all platforms
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 04:24:58 +02:00
Michael Niedermayer
55a04a5d7a
Merge commit 'a1e2caa93e4f8102666a21222f01b74838b6497f'
...
* commit 'a1e2caa93e4f8102666a21222f01b74838b6497f':
mov: Log format rather than fourcc in stsd in trace mode
Conflicts:
libavformat/mov.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 04:15:27 +02:00
Michael Niedermayer
35c8dda5c2
Merge commit '2eef75fd7e1ac96ab9ca63bb4523078c908bc9b1'
...
* commit '2eef75fd7e1ac96ab9ca63bb4523078c908bc9b1':
mov: Adjust variable types to fix format warnings
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 04:06:42 +02:00
Michael Niedermayer
a8e137a322
Merge commit 'df22e30172b09cda4d6f7d4f43508284be65848a'
...
* commit 'df22e30172b09cda4d6f7d4f43508284be65848a':
dump: Use the correct abs() version
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 03:51:56 +02:00
Michael Niedermayer
9c010ba668
Merge commit '0d449c81b3dd25835ae6ac849cdd150f35b9c5c6'
...
* commit '0d449c81b3dd25835ae6ac849cdd150f35b9c5c6':
lavfi: Add library identifier
Conflicts:
libavfilter/version.h
See: a70b4935f1
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 03:41:20 +02:00
Michael Niedermayer
818ff7ff5a
Merge commit '0f87f9b4fceee854f09da2d1ef329245196775f8'
...
* commit '0f87f9b4fceee854f09da2d1ef329245196775f8':
lavd: Add library identifier
Conflicts:
libavdevice/version.h
See: a70b4935f1
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 03:40:06 +02:00
Michael Niedermayer
16dd0426e5
Merge commit '3f872c9bfa8ee1032058cfa48068b5a73ef27b5e'
...
* commit '3f872c9bfa8ee1032058cfa48068b5a73ef27b5e':
lavc: Add missing API guard to dtg_active_format option
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 03:36:32 +02:00
Michael Niedermayer
9e93e544dc
Merge commit '4d1229dabf7a7e3b6a7b326afd79102256c3b008'
...
* commit '4d1229dabf7a7e3b6a7b326afd79102256c3b008':
g2meet: Add FATE tests for all three G2M variants
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 03:26:10 +02:00
Michael Niedermayer
68939f7682
Merge commit '08c2d8f0aa679c2f060721d1d0d4f33d2ae32368'
...
* commit '08c2d8f0aa679c2f060721d1d0d4f33d2ae32368':
Go2Meeting decoder
Conflicts:
Changelog
libavcodec/g2meet.c
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 03:18:30 +02:00
Michael Niedermayer
3974889614
Merge commit 'e2bd03a14a4e3366df0b1ee8e284a97165be1f3c'
...
* commit 'e2bd03a14a4e3366df0b1ee8e284a97165be1f3c':
fate: Avoid unnecessary pixel format conversions
Conflicts:
tests/fate/image.mak
tests/ref/fate/dds-ya
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 03:03:20 +02:00
Michael Niedermayer
2e13a45b1a
avcodec/aacsbr: Assert that bs_num_env is positive
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 02:34:01 +02:00
Michael Niedermayer
79a98294da
avcodec/aacsbr: check that the element type matches before applying SBR
...
Fixes out of array access
Fixes: signal_sigsegv_3670fc0_2818_cov_2307326154_moon.mux
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 02:33:45 +02:00
Vittorio Giovara
a1e2caa93e
mov: Log format rather than fourcc in stsd in trace mode
...
This will fix remaining format warnings.
2015-07-01 00:13:58 +01:00
Vittorio Giovara
2eef75fd7e
mov: Adjust variable types to fix format warnings
2015-07-01 00:13:58 +01:00
Vittorio Giovara
df22e30172
dump: Use the correct abs() version
...
Fix warning from clang "absolute value function 'abs' given an argument
of type 'long long' but has parameter of type 'int' which may cause
truncation of value [-Wabsolute-value]".
2015-07-01 00:13:58 +01:00
Vittorio Giovara
0d449c81b3
lavfi: Add library identifier
2015-07-01 00:13:58 +01:00
Vittorio Giovara
0f87f9b4fc
lavd: Add library identifier
2015-07-01 00:13:58 +01:00
Vittorio Giovara
3f872c9bfa
lavc: Add missing API guard to dtg_active_format option
2015-07-01 00:13:58 +01:00
Diego Biurrun
4d1229dabf
g2meet: Add FATE tests for all three G2M variants
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-01 01:08:15 +02:00
Kostya Shishkov
08c2d8f0aa
Go2Meeting decoder
...
ELS and ePIC decoder courtesy of Maxim Poliakovski,
cleanup and integration by Diego Biurrun.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-07-01 01:08:15 +02:00
rogerdpack
4ebb43f19c
ffmpeg: windows: respond to logoff and ctrl+break messages as well
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-07-01 01:00:38 +02:00
Andreas Cadhalpun
bd0f14123f
ffmpeg: only count got_output/errors in decode_error_stat
...
If threading is used, the first (thread_count - 1) packets are read
before any frame/error is returned. Counting this as successful decoding
is wrong, because it also happens when no single frame could be decoded.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-07-01 00:33:01 +02:00
Andreas Cadhalpun
cd64ead8d9
ffmpeg: exit_on_error if decoding a packet failed
...
This is the second part of the fix for ticket #4370 .
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-07-01 00:32:50 +02:00
Andreas Cadhalpun
32a5b63126
pthread_frame: forward error codes when flushing
...
This is the first part of the fix for ticket #4370 .
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-07-01 00:32:21 +02:00
Nicolas DEROUINEAU
04a68f4348
avcodec/h264: Greenmetadata SEI parsing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 23:20:36 +02:00
Michael Niedermayer
7e9c7b623f
Merge commit '271ce76d317c5432e151216cf23f12b77ed6cb7e'
...
* commit '271ce76d317c5432e151216cf23f12b77ed6cb7e':
h264: Parse registered data SEI message and AFD value
Conflicts:
libavcodec/h264.c
libavcodec/h264.h
libavcodec/h264_sei.c
libavcodec/version.h
See: d6e9566949
See: 22291c372f
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 22:54:33 +02:00
Michael Niedermayer
8e6c5c4322
Merge commit '0bfab80a0d9fce0180e8aa2a947267f89b725091'
...
* commit '0bfab80a0d9fce0180e8aa2a947267f89b725091':
h264_sei: Group error check outside the switch block
Conflicts:
libavcodec/h264_sei.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 22:29:34 +02:00
Michael Niedermayer
2a227fe879
Merge commit '0a49a62f998747cfa564d98d36a459fe70d3299b'
...
* commit '0a49a62f998747cfa564d98d36a459fe70d3299b':
h263: Always check both dimensions
Conflicts:
libavcodec/ituh263dec.c
See: 62006b539d
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 22:14:25 +02:00
Martin Storsjö
e2bd03a14a
fate: Avoid unnecessary pixel format conversions
...
Most of the fate-dds-* and fate-txd-* tests already
output into the same pixel format regardless of
platform endianness, so there's no need to force
conversion to another format.
This fixes the tests fate-txd-16bpp, fate-txd-odd,
fate-dds-rgb16, fate-dds-rgb24 and fate-dds-xrgb on
big endian, where the tests seem to fail due to issues
with certain conversion codepaths in swscale.
Those conversion codepaths should of course be fixed, but
the individual decoder tests should use as little extra
conversion steps as possible.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-06-30 23:10:29 +03:00
Michael Niedermayer
5585da7c5e
Merge commit '6f4cd33efb5a9ec75db1677d5f7846c60337129f'
...
* commit '6f4cd33efb5a9ec75db1677d5f7846c60337129f':
cosmetic: Reformat ff_h263_decode_mba
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 22:01:32 +02:00
Michael Niedermayer
cfcb9f5e36
Merge commit 'e95c7a61852cc5b9ce5445ff034b87553e61958a'
...
* commit 'e95c7a61852cc5b9ce5445ff034b87553e61958a':
mov: Preserve the metadata even when bit-exactness is requested
Conflicts:
libavformat/movenc.c
tests/ref/vsynth/vsynth1-mpeg4
tests/ref/vsynth/vsynth2-mpeg4
See: a17ee4117d
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 21:47:58 +02:00
Michael Niedermayer
4ff0c61ba8
Merge commit '303ec065a90498c29d384b4add2ac626bc38d5eb'
...
* commit '303ec065a90498c29d384b4add2ac626bc38d5eb':
aic: Fix slice size computation for widths multiples of 32 macroblocks
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 21:19:22 +02:00
Michael Niedermayer
2e9dcb82e5
Merge commit '3e3056f2a020dd77efdf379dbd4c06a65b4a499a'
...
* commit '3e3056f2a020dd77efdf379dbd4c06a65b4a499a':
h264: Allow stream and container cropping at the same time
Conflicts:
libavcodec/h264_slice.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 21:11:49 +02:00
Vittorio Giovara
271ce76d31
h264: Parse registered data SEI message and AFD value
...
Partially based on code by Marton Balint and Kieran Kunhya.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-30 15:34:38 +02:00
Vittorio Giovara
0bfab80a0d
h264_sei: Group error check outside the switch block
2015-06-30 15:34:38 +02:00
Luca Barbato
0a49a62f99
h263: Always check both dimensions
...
CC: libav-stable@libav.org
Found-By: ago@gentoo.org
2015-06-30 15:34:38 +02:00
Luca Barbato
6f4cd33efb
cosmetic: Reformat ff_h263_decode_mba
2015-06-30 15:34:38 +02:00
Luca Barbato
e95c7a6185
mov: Preserve the metadata even when bit-exactness is requested
...
Make sure to not write the custom `encoder` string in that case.
Bug-Id: 845
CC: libav-stable@libav.org
2015-06-30 15:34:38 +02:00
Vittorio Giovara
303ec065a9
aic: Fix slice size computation for widths multiples of 32 macroblocks
...
CC: libav-stable@libav.org
2015-06-30 15:34:37 +02:00
Vittorio Giovara
3e3056f2a0
h264: Allow stream and container cropping at the same time
...
The container cropping is applied only when difference is within 16
pixels, and the smallest value between the two is chosen.
Bug-Id: 383
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-30 15:34:37 +02:00
Vittorio Giovara
3ad678a85b
fate: Update ac3 test to the new request_channel_layout option
2015-06-30 15:34:37 +02:00
John Högberg
42bc768e52
mpegts: Add jpeg2000 stream type
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-06-30 10:08:16 +02:00
Paul B Mahol
185e76976e
avfilter/vf_ssim: fix some cosmetics issues
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-30 02:52:33 +00:00
Michael Niedermayer
a9aed08fa4
Merge commit '3ad678a85b96fc5fecd60e3d3a31ca5ffc89d67f'
...
* commit '3ad678a85b96fc5fecd60e3d3a31ca5ffc89d67f':
fate: Update ac3 test to the new request_channel_layout option
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 20:55:38 +02:00
Michael Niedermayer
330863c9f1
avcodec/h264_slice: Use w/h from the AVFrame instead of mb_w/h
...
Fixes out of array access
Fixes: asan_heap-oob_4d5bb0_682_cov_3124593265_Fraunhofer__a_driving_force_in_innovation__small.mp4
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 19:38:44 +02:00
Michael Niedermayer
0083c16605
avfilter/vf_transpose: Fix rounding error
...
Fixes out of array access
Fixes: asan_heap-oob_7f875d_3482_cov_1818465256_ssudec.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 16:02:09 +02:00
Carl Eugen Hoyos
9295ee137a
configure: Mention hap encoding for --enable-libsnappy.
2015-06-30 15:14:09 +02:00
Carl Eugen Hoyos
0f5b996531
lavc/j2kenc: Make jp2 output compatible with Kakadu.
...
Fixes ticket #4689 .
2015-06-30 15:00:38 +02:00
Carl Eugen Hoyos
e97ec65630
doc: Add jpeg2000 encoder documentation.
2015-06-30 15:00:38 +02:00
Carl Eugen Hoyos
8080688d0e
lavc/hapenc: Silence a warning for multithreaded encoding.
2015-06-30 14:34:56 +02:00
Michael Niedermayer
5c047f3ad4
avcodec/j2kenc: store libavcodec ident in a comment unless bitexact mode is used
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 13:45:03 +02:00
James Zern
e91f860ea7
vp9/update_prob: prevent out of bounds table read
...
the max value of the lookup in expanded form is:
(((1 << 7) - 1) << 1) - 65 + 1 + 64 = 254
add one entry of padding to inv_map_table[] to prevent out of bounds
access with non-conforming / fuzzed bitstreams
Signed-off-by: James Zern <jzern@google.com >
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 13:24:19 +02:00
Michael Niedermayer
088b410ea2
Merge commit '42bc768e5240ec01237ad2eb7c69b917158de258'
...
* commit '42bc768e5240ec01237ad2eb7c69b917158de258':
mpegts: Add jpeg2000 stream type
Conflicts:
libavformat/mpegts.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 13:08:26 +02:00
Michael Niedermayer
6d9dfb1267
Merge commit '1b4c468477f3b8d372da8ef4e5405539ad9c1501'
...
* commit '1b4c468477f3b8d372da8ef4e5405539ad9c1501':
riff: Validate the wav header size before trying to parse it
Conflicts:
libavformat/riffdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 12:59:16 +02:00
Michael Niedermayer
3cd6b6aa0f
Merge commit '5bdfc17189e4ea63c6b46b6d5256852fcb409d68'
...
* commit '5bdfc17189e4ea63c6b46b6d5256852fcb409d68':
asf: Do not skip data streams
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 12:48:11 +02:00
Michael Niedermayer
0d5a27c2b5
Rename asfdec-o.c to asfdec_o.c
...
Most files use _ instead of - as spacer, so this is more consistent
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 12:23:44 +02:00
Michael Niedermayer
8f9c39b3e8
avformat: rename asfdec.c to asfdec_f.c
...
leaving it as asfdec.c confuses git
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 12:23:12 +02:00
James Almer
6415dcb013
configure: fix hevc_vdpau_hwaccel dependencies
...
Signed-off-by: James Almer <jamrial@gmail.com >
2015-06-30 04:11:31 -03:00
Michael Niedermayer
4aa0de644a
avcodec/h264_refs: discard mismatching references
...
Fixes inconsistency and out of array access
Fixes: asan_heap-oob_17301a3_2100_cov_3226131691_ff_add_pixels_clamped_mmx.m2ts
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 03:24:26 +02:00
Michael Niedermayer
84afc6b70d
avcodec/mjpegdec: Fix small picture upscale
...
Fixes out of array access
Fixes: asan_heap-oob_1dd60fd_267_cov_2954683513_5baad44ca4702949724234e35c5bb341.jpg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-30 01:33:25 +02:00
Michael Niedermayer
b54ac8403b
avcodec/pngdec: Check values before updating context in decode_fctl_chunk()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-29 22:32:02 +02:00
Michael Niedermayer
f1ffa01dd3
avcodec/pngdec: Copy IHDR & plte state from last thread
...
Previously these chunks where parsed again for each frame with threads
but not without leading to a different path and the potential for
inconsistencies
This also removes a related special case from decode_ihdr_chunk()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-29 22:16:58 +02:00
Michael Niedermayer
a1736926e9
avcodec/pngdec: Require a IHDR chunk before fctl
...
This is required by the APNG spec
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-29 21:57:12 +02:00
Michael Niedermayer
47f4e2d896
avcodec/pngdec: Only allow one IHDR chunk
...
Multiple IHDR chunks are forbidden in PNG
Fixes inconsistency and out of array accesses
Fixes: asan_heap-oob_4d5c5a_1738_cov_2638287726_c-m2-8f2b481b7fd9bd745e620b7c01a18df2.png
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-29 21:30:57 +02:00
Paul B Mahol
9842d6707f
avfilter/avf_showvolume: optionally display channel names
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-29 07:53:56 +00:00
Michael Niedermayer
e55e5be982
Merge remote-tracking branch 'cehoyos/master'
...
* cehoyos/master:
lavf/msnwc: Return 0 if the probe function does not detect msnwc-tcp.
lavf/mpegts: Return 0 if the probe function does not detect mpegts.
lavf/img2dec: Improve detection of valid Quickdraw images.
lavf/asfdec: Reduce minimum header size.
Changelog: Add jpeg 2000 improvements before they get forgotten.
lavf/img2dec: Autodetect dds frames.
Conflicts:
libavformat/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-29 17:29:13 +02:00
Rostislav Pehlivanov
7c10b87b57
aacenc: add support for coding of intensity stereo scalefactor indices
...
This commit adds support for the coding of intensity stereo scalefactor indices.
It does not do any marking of such bands and as such does no functional changes
to the encoder. It removes any old twoloop specific code for PNS and moves it
into a seperate function which handles setting of scalefactor indices for
PNS and IS bands.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-29 16:44:40 +02:00
Michael Niedermayer
da8b228977
avformat/avio: Move avio_delete() avio_move() to avpriv_ namespace
...
This was suggested in the discussion about these functions
With this change the functions are available internally but are not
part of the public API
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-29 16:30:43 +02:00
Carl Eugen Hoyos
4b920d7b4a
lavf/msnwc: Return 0 if the probe function does not detect msnwc-tcp.
...
Reduces console spamming on debug level.
2015-06-29 16:29:07 +02:00
Carl Eugen Hoyos
77c0b149be
lavf/mpegts: Return 0 if the probe function does not detect mpegts.
...
Reduces console spamming on debug level.
2015-06-29 16:27:36 +02:00
Carl Eugen Hoyos
dee7943819
lavf/img2dec: Improve detection of valid Quickdraw images.
...
Detect Quickdraw images without application header with
lower score.
2015-06-29 16:25:11 +02:00
Carl Eugen Hoyos
5a458420e2
lavf/asfdec: Reduce minimum header size.
...
Fixes GipsyGuitar.wmv mentioned in ticket #1477 .
2015-06-29 16:23:15 +02:00
Carl Eugen Hoyos
45441eb0f6
Changelog: Add jpeg 2000 improvements before they get forgotten.
2015-06-29 16:17:05 +02:00
Carl Eugen Hoyos
a876a4da4a
lavf/img2dec: Autodetect dds frames.
2015-06-29 16:13:26 +02:00
Michael Niedermayer
f6ab967eae
swscale/swscale_unscaled: Fix rounding difference with RGBA output between little and big endian
...
Fixes fate/dds-rgb16 on big endian
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-29 13:54:35 +02:00
Shivraj Patil
d9deae04a7
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for pixblock functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for pixblock functions in new file pixblockdsp_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-29 12:03:43 +02:00
Paul B Mahol
21cede9e97
doc/filters: fix documentation bug in ssim filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-28 21:35:19 +00:00
Michael Niedermayer
4ccd2b31f0
avformat/asfdec: Allow packet_obj_size == 0
...
Fixes Ticket3521
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-29 04:57:51 +02:00
Michael Niedermayer
be4e1f28fd
avformat/asfdec: Print packet_obj_size in case it is invalid
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-29 04:55:06 +02:00
Ludmila Glinskih
ca3b274552
api-h264-test: build with another api test
...
Location of api-h264-test changed to special directory for api tests.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-29 02:49:32 +02:00
George Boyle
02bd4d93c9
fate/api-tests: Added dependency on $(FF_DEP_LIBS)
...
This ensures they are built before the tests are run.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-29 01:01:44 +02:00
George Boyle
c78b82f4da
tests/Makefile: Fix missing trailing slash for API tests dir target
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 23:29:59 +02:00
Michael Niedermayer
a5f617e9ec
avformat/asfdec: Print a warning if data is skiped due to less than a frame header being left
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 23:22:31 +02:00
Michael Niedermayer
4b0a475846
avformat/asfdec: Reduce FRAME_HEADER_SIZE to 11
...
This fixes demuxing of screen_codec.wmv
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 23:22:31 +02:00
Rostislav Pehlivanov
55397b0e76
aaccoder: add intensity stereo support to encode_window_bands_info quantizer
...
This commit adds support for both PNS and IS (intensity stereo) codebooks to the
encode_window_bands_info() quantizer, used by the faast, faac and anmr non-default,
native coders. This does not mean that both extensions now work with those coders,
some are simply unsuited and will trigger an assertion in the encoder while
others simply ignore the changed scalefactor indices and band types.
This commit simply adds support for encoding said band types with the alternative
coders. Future commits to the coders will be required to make them suitable.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 21:15:58 +02:00
Rostislav Pehlivanov
305859c0d4
aaccoder: add intensity stereo coding support for the trellis quantizer
...
This commit extends the trellis quantizer (used by the default twoloop coder)
to accept and correctly encode codebooks needed for intensity stereo and perceptual noise substitution.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 21:15:40 +02:00
Michael Niedermayer
ecbd111768
avcodec/jpeg2000dec: Remove unused variables
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 19:36:52 +02:00
Luca Barbato
1b4c468477
riff: Validate the wav header size before trying to parse it
2015-06-28 17:32:40 +02:00
Luca Barbato
5bdfc17189
asf: Do not skip data streams
2015-06-28 17:10:54 +02:00
Andreas Cadhalpun
2a4700a4f0
wmavoice: limit wmavoice_decode_packet return value to packet size
...
Claiming to have decoded more bytes than the packet size is wrong.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-28 17:00:21 +02:00
Rodger Combs
7d0a19757e
lavc/adpcm: THP: set approx_nb_samples correctly
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 16:42:25 +02:00
Paul B Mahol
f76d7d4b01
avfilter: add showvolume filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-28 14:33:36 +00:00
Michael Niedermayer
96e73fa649
avcodec/jpeg2000dec: Merge i_stepsize/2 decoder special case into dequant
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 15:26:31 +02:00
Andreas Cadhalpun
9a345802ed
huffyuvdec: validate image size
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-28 14:51:07 +02:00
Rostislav Pehlivanov
02dbed6e71
aacpsy: Add energy spread for each band
...
This commit adds the energy spread to the struct for each band and removes 2 unused fields.
distortion and perceptual_weight were not referenced in any file nor were they set to any value,
so it was safe to remove them. The energy spread is currently only used in the aac psy model.
It's defined as being proportional to the tonality of each band.
Reviewed-by: Claudio Freire <klaussfreire@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 14:24:30 +02:00
Michael Niedermayer
a57ee6cca1
Merge commit '8a26ae5f94e613dbf7eb8e3c60462e966e409cdc'
...
* commit '8a26ae5f94e613dbf7eb8e3c60462e966e409cdc':
mpjpeg: Check stream allocation
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 13:41:44 +02:00
Michael Niedermayer
30b8f3e7dc
Merge commit 'b08569a23948db107e5e6175cd4c695427d5339d'
...
* commit 'b08569a23948db107e5e6175cd4c695427d5339d':
lavf: Replace the ASF demuxer
Conflicts:
Changelog
libavformat/asf.h
libavformat/asfdec.c
libavformat/version.h
tests/ref/fate/wmv8-drm-nodec
tests/ref/seek/lavf-asf
The rewritten demuxer is placed in a new file, the current demuxer is
left as default. Carl has tested both and the one working better is
default.
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 13:36:54 +02:00
Michael Niedermayer
da06169850
avformat/riffdec: Forward error code from avio_read() in ff_get_guid()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 13:04:47 +02:00
Michael Niedermayer
0940169743
tests/fate/wma: use the existing reference files for wmapro tests
...
Theres no need to upload or use new files just because they are
shorter.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 11:58:57 +02:00
Michael Niedermayer
3d2267019c
Merge commit '441e8ae5efd681055e5af6f4317fb60110de9dd0'
...
* commit '441e8ae5efd681055e5af6f4317fb60110de9dd0':
FATE: drop the last truncated frame from the wmapro tests
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 11:48:49 +02:00
Michael Niedermayer
fb2eeebf66
Merge commit 'd3ea79e8a65ddad4da11813bb43c46701295f68c'
...
* commit 'd3ea79e8a65ddad4da11813bb43c46701295f68c':
FATE: drop the last truncated frame from the wma lossless test
Conflicts:
tests/fate/lossless-audio.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 11:41:23 +02:00
Andreas Cadhalpun
f9883a669c
wavpack: use get_bits_long to read up to 32 bits
...
get_bits should not be used for more than 25 bits.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-28 11:29:46 +02:00
Luca Barbato
8a26ae5f94
mpjpeg: Check stream allocation
...
Bug-Id: CID 1308152
2015-06-28 10:27:19 +02:00
Alexandra Hájková
b08569a239
lavf: Replace the ASF demuxer
...
The old one is the result of the reverse engineering and guesswork.
The new one has been written following the now-available specification.
This work is part of Outreach Program for Women Summer 2014 activities
for the Libav project.
The fate references had to be changed because the old demuxer truncates
the last frame in some cases, the new one handles it properly.
The seek-test reference is changed because seeking works differently
in the new demuxer. When seeking, the packet is not read from the stream
directly, but it is rather constructed by the demuxer. That is why
position is -1 now in the reference.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2015-06-28 10:16:40 +02:00
Anton Khirnov
441e8ae5ef
FATE: drop the last truncated frame from the wmapro tests
...
Since it's truncated, the result depends on how specifically the demuxer
and the decoder handle errors.
2015-06-28 10:10:36 +02:00
Anton Khirnov
d3ea79e8a6
FATE: drop the last truncated frame from the wma lossless test
...
Since it's truncated, the result depends on how specifically the demuxer
and the decoder handle errors.
2015-06-28 10:10:07 +02:00
Michael Niedermayer
317be53ca6
avcodec/jpeg2000: Support 32 decomposition levels
...
Fixes Ticket4680
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 03:16:06 +02:00
Michael Niedermayer
d62657eb4a
configure: Also create tests/api
...
This should fix some problems on some fate clients like openbsd
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 02:56:26 +02:00
Michael Niedermayer
cd1a9908b5
avcodec/jpeg2000: support >32bit in ff_jpeg2000_ceildivpow2()
...
Fixes part of Ticket4680
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 02:31:26 +02:00
Michael Niedermayer
f01028bf58
avcodec/jpeg2000: Avoid one shift in ff_jpeg2000_ceildivpow2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 02:27:43 +02:00
Ludmila Glinskih
86fb203246
api-flac-test: Fix the bug of comparing zero bytes
...
Add check for linesize.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 01:05:59 +02:00
Rostislav Pehlivanov
d71935f883
aac: add additional fields needed by the encoder for intensity stereo
...
This commit adds additional fields which are used by the native encoder to add intensity stereo support. It also adds some clarifying statements to the comments for the codebooks.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-28 00:15:21 +02:00
Michael Niedermayer
6323647c35
avcodec/h264_slice: Reformat IN_RANGE() uses to be readable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 23:56:41 +02:00
Michael Niedermayer
29b0923324
avcodec/h264_slice: Silence pointer type warnings
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 23:56:06 +02:00
Michael Niedermayer
9ea256814d
avcodec/h264_slice: assert that the first slice implies unfinished setup
...
If this assert fails there is very likely a bug in the code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 23:42:33 +02:00
Michael Niedermayer
bd5c6a519e
Merge commit '5ec0bdf2c524224f30ba4786f47324970aed4aaa'
...
* commit '5ec0bdf2c524224f30ba4786f47324970aed4aaa':
h264: do not update the context fields copied between threads after finish_setup()
Conflicts:
libavcodec/h264.h
libavcodec/h264_slice.c
See: f111831ed6 and others
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 22:15:01 +02:00
Michael Niedermayer
77412f0ecd
Merge commit '6d4d3fee63c46d921c4870feab79269af94e84e1'
...
* commit '6d4d3fee63c46d921c4870feab79269af94e84e1':
h264: make sure the current picture is not made a long ref multiple times
See: 34ea5f418e
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 20:56:30 +02:00
Michael Niedermayer
a5f409bcc0
Merge commit '9a5e4fbec870c7d466b7a0aec92c70778efc96b5'
...
* commit '9a5e4fbec870c7d466b7a0aec92c70778efc96b5':
avconv: do not stop processing the input packet on decoding error
Conflicts:
ffmpeg.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 20:34:42 +02:00
Michael Niedermayer
a50b008227
Merge commit 'b114f6d48a06a4dad6882bc83e07463905f004c4'
...
* commit 'b114f6d48a06a4dad6882bc83e07463905f004c4':
avconv: factor out flushing the filters
Conflicts:
ffmpeg.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 20:22:45 +02:00
James Almer
93e7b7fb34
avutil/x86/intmath: add missing check for inline assembly
...
Signed-off-by: James Almer <jamrial@gmail.com >
2015-06-27 14:33:53 -03:00
Andreas Cadhalpun
6b9fdf7f4f
nutdec: check maxpos in read_sm_data before returning success
...
Otherwise sm_size can be larger than size, which results in a negative
packet size.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-27 19:22:27 +02:00
Michael Niedermayer
f620315fa5
Merge commit 'e49e0f58e273237f83b4486f3536931ed1943d18'
...
* commit 'e49e0f58e273237f83b4486f3536931ed1943d18':
h264: make sure the slices do not overlap during slice threading
Conflicts:
libavcodec/h264.h
libavcodec/h264_slice.c
See: 43b434210e
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 18:46:11 +02:00
Niklesh
cf9051deac
movtextenc.c: Support for Bold, Italic and Underlined Styles
...
Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in >
2015-06-27 09:28:34 -07:00
Michael Niedermayer
1edc87a665
Merge commit 'b56b12cd12f32bf11efff05632600a7619584b98'
...
* commit 'b56b12cd12f32bf11efff05632600a7619584b98':
configure: Check for x265_api_get
Conflicts:
configure
See: f4be604f1c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 18:13:43 +02:00
James Almer
1e51e517be
avutil/x86/intmath: use bzhi gcc builtin in av_mod_uintp2()
...
Signed-off-by: James Almer <jamrial@gmail.com >
2015-06-27 12:56:55 -03:00
Anton Khirnov
5ec0bdf2c5
h264: do not update the context fields copied between threads after finish_setup()
...
Should fix a large number of possible races with frame threading.
2015-06-27 16:48:48 +02:00
Anton Khirnov
6d4d3fee63
h264: make sure the current picture is not made a long ref multiple times
...
Fixes possible invalid reads, once one of those refs is freed, but the
others remain.
CC: libav-stable@libav.org
2015-06-27 16:46:01 +02:00
Anton Khirnov
9a5e4fbec8
avconv: do not stop processing the input packet on decoding error
...
We still want to flush the filters on EOF and possibly apply streamcopy.
2015-06-27 16:45:41 +02:00
Anton Khirnov
b114f6d48a
avconv: factor out flushing the filters
...
This also ensures this is always done, avoiding infinite loops if an
error occurs at the end of the input.
2015-06-27 16:45:04 +02:00
Anton Khirnov
e49e0f58e2
h264: make sure the slices do not overlap during slice threading
...
Based on a patch by Michael Niedermayer <michaelni@gmx.at >.
CC: libav-stable@libav.org
Found-by: Kieran Kunhya <kierank@obe.tv >
2015-06-27 16:43:22 +02:00
Michael Niedermayer
5cccbc3b74
avcodec/jpeg2000dec: Check for mismatching per expected termination
...
not just at the end
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 15:22:15 +02:00
Rodger Combs
68f00fb40b
lavf/brstm: if the file lies about the last block's size, correct it
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 14:15:12 +02:00
Derek Buitenhuis
f4be604f1c
configure: Check for x265_api_get
...
Any other x265 symbol may not exported, e.g. if the build is a
multilib (10-bit and 8-bit in one) build.
This is the only symbol we directly call, and is available in the
build number we check for.
Fixes the configure check on multilib x265 builds.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2015-06-27 11:45:33 +01:00
Derek Buitenhuis
b56b12cd12
configure: Check for x265_api_get
...
Any other x265 symbol may not exported, e.g. if the build is a
multilib (10-bit and 8-bit in one) build.
This is the only symbol we directly call, and is available in the
build number we check for.
Fixes the configure check on multilib x265 builds.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2015-06-27 11:44:20 +01:00
Michael Niedermayer
8672c0a643
avcodec/jpeg2000dec: Limit poc end fields to whats available in jpeg2000_decode_packets()
...
Fixes: Ticket4677
Solution based on information from
https://code.google.com/p/openjpeg/issues/detail?id=80
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 11:48:42 +02:00
Michael Niedermayer
aab4dbe534
avcodec/utils: Replace ENOTSUP by AVERROR_PATCHWELCOME
...
ENOTSUP is not available on all platforms
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 11:19:57 +02:00
Philip Langdale
b69bea3ab8
avcodec: Add flag for experimental HWAccels and use it for VDPAU/HEVC
...
This HWAccel isn't really usable right now due to an nvidia driver bug,
so we don't want it selected by default.
HWAccels have a capabilities field and there's a comment about flags,
but no flags exist today, so let's add one for experimental hwaccels.
2015-06-26 19:07:51 -07:00
George Boyle
7728d231a6
fate/api-tests: Move api-flac-test to API tests directory.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 03:43:23 +02:00
George Boyle
3f18cb97e5
fate/api-tests: Add directory and Makefile for API tests
...
The intention of this change is to allow separation of API tests from the
existing tests, and also to have a place for the API test source/executable
files so they're not mixed in with the actual library code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 03:42:47 +02:00
Michael Niedermayer
1221b7df68
Merge commit '92fdc80cab2acad9f171ba38a08aa89b392bdadd'
...
* commit '92fdc80cab2acad9f171ba38a08aa89b392bdadd':
nvenc: Fix NV12 input
Conflicts:
libavcodec/nvenc.c
Not merged, the changed code is not in FFmpeg
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 23:58:51 +02:00
Michael Niedermayer
a4d76faf45
Merge commit '072756cdd2f949462520041e357f52f15d8c274d'
...
* commit '072756cdd2f949462520041e357f52f15d8c274d':
vc1dec: use get_bits_long and limit the read bits to 32
See: 1f1e0a2971
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 23:44:21 +02:00
Andreas Cadhalpun
04dfbc9441
s302m: fix arithmetic exception
...
If nb_samples is zero, the bit_rate calculation results in a division by
zero.
Since ff_get_buffer fails if frame->nb_samples is zero, this can be
fixed by moving the bit_rate calculation after that function call.
That also makes it possible to reuse the already calculated
frame->nb_samples value.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-26 23:35:26 +02:00
Kieran Kunhya
22291c372f
avcodec: Add support for per-frame AFD output in h264
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 23:11:17 +02:00
Luca Barbato
92fdc80cab
nvenc: Fix NV12 input
2015-06-26 22:18:24 +02:00
Michael Niedermayer
b75c0a72ed
avcodec/jpeg2000dec: Fix tp_index for POC
...
Fixes Ticket2586
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 22:00:29 +02:00
Michael Niedermayer
c56ba5c270
avcodec/jpeg2000dec: Print what is found in place of EPH if EPH is not found
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 22:00:28 +02:00
James Almer
5abd4a9323
libvpx: disable unused function prototypes
...
Fixes make checkheader
Signed-off-by: James Almer <jamrial@gmail.com >
2015-06-26 16:43:37 -03:00
Michael Niedermayer
c72a831931
avcodec/jpeg2000dec: Support progression order changes
...
Fixes Ticket4657
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 21:00:10 +02:00
Michael Niedermayer
2ec0ba1e22
avcodec/jpeg2000dec: Parse POCs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 20:59:05 +02:00
Andreas Cadhalpun
072756cdd2
vc1dec: use get_bits_long and limit the read bits to 32
...
get_bits should not be used with more than 25 bits.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-06-26 19:39:29 +02:00
Andreas Cadhalpun
1f1e0a2971
vc1dec: use get_bits_long and limit the read bits to 32
...
get_bits should not be used with more than 25 bits.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-26 19:20:00 +02:00
Andreas Cadhalpun
151dbe4579
mpegaudiodec: copy AVFloatDSPContext from first context to all contexts
...
This fixes a segfault when decoding multi-channel MP3onMP4 files.
This is similar to commit cb72230d for MPADSPContext.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-26 19:10:46 +02:00
Peter Ross
ea8fec2057
fate: test ea vp6 with alpha stream
...
Signed-off-by: Peter Ross <pross@xvid.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 14:39:11 +02:00
schenk michael
b9161ef052
avformat/hls: do not iterate to next sequence number if interruption is requested
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 14:36:25 +02:00
Zhang Rui
d38bc6361d
avutil/log: modify AV_LOG_MAX_OFFSET for AV_LOG_TRACE
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 14:02:35 +02:00
Michael Niedermayer
7ca0cd5831
avcodec/jpeg2000dec: iterate in tile sample space for CPRL & RPCL
...
Thats what the spec says should be done
aka iterate in the wrong space and use special cases to patch that up.
It sometimes can result in different order
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 13:44:17 +02:00
Michael Niedermayer
29cc0a178e
ffmpeg_opt: Fix sync_ist
...
This code was lost in 2663540821
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 12:41:43 +02:00
Michael Niedermayer
f5822ea379
avcodec/jpeg2000dec: Add missing \n to av_log()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 05:25:42 +02:00
Michael Niedermayer
50b77e364f
avcodec/jpeg2000dec: iterate over positions with the special cases from jpeg2000
...
The order in j2k is not the simple and logic one
Fixes Ticket4670
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 05:25:42 +02:00
Michael Niedermayer
6c4a2f11dd
avcodec/jpeg2000dec: Add coords to Jpeg2000Tile
...
These will be needed in subsequent commits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 05:25:42 +02:00
Philip Langdale
6e5e139fe3
avcodec/vdpau: Support for VDPAU accelerated HEVC decoding
...
This change introduces basic support for HEVC decoding through vdpau.
Right now, there are problems with the nvidia driver/library implementation
that mean that frames are incorrectly laid out in memory when they are
returned from the decoder, and it is normally impossible to recover the
complete decoded frame due to loss of data from alignment inconsistencies.
I obviously hope that nvidia will be fixing it in due course - I've verified
the problems exist with their example application.
As such, this support is not useful for any real world application, but I
believe that it is correct (with the caveat that the mangled frames may hide
problems) and will work properly once the nvidia problem is fixed.
Right now it appears that any file encoded by x265 or nvenc is decoded
correctly, but that's because these files don't use a bunch of HEVC
features.
Quick summary:
Features that seem to work:
1) Short Term References
2) Scaling Lists
3) Tiling
Features with known problems:
1) Long Term References
It's hard to tell what's going on here. After I read the nvidia example
app that does not set the IsLongTerm flag on LTRs, and changed my code,
a bunch of frames using LTR started to display correctly, but there
are still samples with glitches that are related to LTRs.
In terms of real world files, both x265 and nvenc only use short term
refs from this list. The divx encoder seems similar.
Signed-off-by: Philip Langdale <philipl@overt.org >
2015-06-25 20:06:47 -07:00
Michael Niedermayer
f1e173049e
avcodec/jpeg2000: Remove CBLK limit
...
This also reduces the amount of memory needed
Fixes Ticket4672
The new code seems slightly faster as well, probably due to better cache usage
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-26 01:00:17 +02:00
Michael Niedermayer
8c22143e7e
ffmpeg: Use 2 instead of STDERR_FILENO
...
STDERR_FILENO is not available on windows
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-25 23:44:06 +02:00
Paul B Mahol
cdcf637d56
avcodec/evrc: make it possible to disable postfilter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-25 20:07:01 +00:00
Rodger Combs
388a6f581a
lavc+doc: adjust names to reflect ADPCM THP not being GameCube-only
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-25 19:29:02 +02:00
Rodger Combs
0643b4bf74
lavf/brstm: expose the loop point when present
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-25 19:17:01 +02:00
Shawn Rainey
2c77ca459e
configure: Fix ranlib failure with older cross toolchains
...
Cross-compile toolchains without support for ranlib -D would fail.
This fixes the configure script to test the cross ranlib rather than the native ranlib.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-25 18:46:39 +02:00
rogerdpack
87961eff23
modify exit message when signaled
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-25 14:18:31 +02:00
Peter Ross
803bdc5469
electronicarts: demux alpha stream
...
Electronic Arts VP6 files may contain two video streams: one for the
primary video stream and another for the alpha mask. The file format
uses identical data structures for both streams.
Signed-off-by: Peter Ross <pross@xvid.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-25 12:45:09 +02:00
Peter Ross
a2517fca1e
electronicarts: move video stream properties into dedicated structure
...
This is required for the alpha stream demux patch.
Signed-off-by: Peter Ross <pross@xvid.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-25 12:45:00 +02:00
rogerdpack
1bcdac2da3
ffmpeg: log error message when shutting down from too many signals
...
write() suggested by wm4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-25 12:23:29 +02:00
Ronald S. Bultje
d5a36edda4
vp9: fix profile check for intraonly frames.
...
Reviewed-by: James Zern <jzern@google.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-25 04:29:03 +02:00
Ludmila Glinskih
b04c630a3d
libavformat: Add H264 API test
...
Result differs in pkt_duration and time_base.den for some reason.
Right now it tests only one example (adjusted to match the output).
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-25 04:09:51 +02:00
Michael Niedermayer
9ff5e7974a
avcodec/jpeg2000dec: Limit x/y step to 1<<30
...
Fixes infinite loop
Fixes Ticket4663
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-25 00:43:49 +02:00
Michael Niedermayer
67fc898243
avcodec/jpeg2000: Improve right bottom precinct positions
...
Fixes Ticket4656
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-25 00:23:31 +02:00
Michael Niedermayer
2d8bf3d126
avcodec/jpeg2000dec: Check PPx / PPy values
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-25 00:23:31 +02:00
Reynaldo H. Verdejo Pinochet
08724da976
ffserver: make statement block unconditional by exiting early
...
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com >
2015-06-24 19:17:51 -03:00
Reynaldo H. Verdejo Pinochet
36a617c162
ffserver: make statement block unconditional by exiting early
...
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com >
2015-06-24 19:17:51 -03:00
Reynaldo H. Verdejo Pinochet
469c335c55
ffserver: unify comment formating & drop unneeded braces
...
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com >
2015-06-24 19:17:51 -03:00
Reynaldo H. Verdejo Pinochet
1714fe2990
ffserver: factor out stream params printing
...
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com >
2015-06-24 19:17:51 -03:00
Reynaldo H. Verdejo Pinochet
89234deaa2
ffserver: simplify URLContext cleanup
...
Drop unneeded var and avoid checking for NULL twice as
ffurl_closep() already does this.
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com >
2015-06-24 19:17:51 -03:00
James Zern
766a8346cf
libvpxdec: report colorspace
...
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com >
Signed-off-by: James Zern <jzern@google.com >
2015-06-24 15:09:31 -07:00
James Zern
469398f8b7
libvpxdec: report profile for vp9
...
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com >
Signed-off-by: James Zern <jzern@google.com >
2015-06-24 14:54:54 -07:00
Michael Niedermayer
eb823df817
Merge commit '5dbd491eb38efab1d1313d4129ed76ab2e98176d'
...
* commit '5dbd491eb38efab1d1313d4129ed76ab2e98176d':
TextureDSP: fix erroneous condition which produced blocky output for DXT
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 21:06:58 +02:00
Michael Niedermayer
87544ce8dc
Merge commit '4d55484391112a30d16812597b9ad81605af0c24'
...
* commit '4d55484391112a30d16812597b9ad81605af0c24':
dds: Fix palette mode on big endian
Conflicts:
libavcodec/dds.c
See: 21d2e3d602
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 20:57:45 +02:00
Michael Niedermayer
4107092349
Merge commit 'ded5957d75def70d2f1fc1c1eae079230004974b'
...
* commit 'ded5957d75def70d2f1fc1c1eae079230004974b':
segafilm: Remove deplanarization hack
Conflicts:
libavformat/segafilm.c
libavformat/version.h
See: 42b8f5fba1
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 20:51:22 +02:00
Michael Niedermayer
ffd9d60201
avcodec: Add codec_desc and remapping for AV_CODEC_ID_PCM_S16BE_PLANAR_DEPRECATED
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 20:37:02 +02:00
Michael Niedermayer
8e2fcd1cb4
Merge commit '5a79bf0284a37855636390e620d189a964214c9e'
...
* commit '5a79bf0284a37855636390e620d189a964214c9e':
PCM signed 16-bit big-endian planar decoder
Conflicts:
doc/general.texi
libavcodec/Makefile
libavcodec/allcodecs.c
libavcodec/avcodec.h
libavcodec/pcm.c
libavcodec/version.h
libavformat/nut.c
See: 9ba41ae63e
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 20:36:26 +02:00
James Almer
58d7dde081
brstm: fix use of uninitialized variables
...
Fixes valgrind complaining about "Conditional jump or move depends on uninitialised value(s)"
Signed-off-by: James Almer <jamrial@gmail.com >
2015-06-24 14:31:54 -03:00
Michael Niedermayer
d7e224ec24
avcodec/jpeg2000: change flags array type to 16bit
...
reduce memory needed for flags
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 17:46:37 +02:00
Michael Niedermayer
d580255571
vcodec/jpeg2000: Increase cblk size limit to 128
...
Fixes Ticket4649
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 17:38:05 +02:00
Michael Niedermayer
ffa1de8a3b
avcodec/jpeg2000dec: Use 32x32->64bit for 9/7i dequantization
...
Like the 5/3 case this is needed to avoid overflows and similarly for 16bpp
output pure 32bit operations are insufficient if high quality is wanted
Note, this code-path is only used in bitexact mode, so this should not
affect the speed of any real use-case
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 17:09:21 +02:00
Michael Niedermayer
05ef6324d1
avcodec/jpeg2000dec: Add 5/3 de-quantization special case for the lossless case
...
This avoids a multiplication and 64bits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 17:05:42 +02:00
Michael Niedermayer
8ff09e9098
avcodec/jpeg2000dec: Use 32x32->64bit for 5/3 dequantization
...
This fixes overflows, using fewer bits would impact high bit depth quality
Fixes Ticket4654
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 17:03:38 +02:00
Paul B Mahol
5a1f785249
avfilter: add ssim filter
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-24 14:04:40 +00:00
Tom Butterworth
5dbd491eb3
TextureDSP: fix erroneous condition which produced blocky output for DXT
2015-06-24 14:45:23 +01:00
Luca Barbato
4d55484391
dds: Fix palette mode on big endian
...
Found-By: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-24 14:45:16 +01:00
Paul B Mahol
ded5957d75
segafilm: Remove deplanarization hack
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-24 14:45:09 +01:00
Paul B Mahol
5a79bf0284
PCM signed 16-bit big-endian planar decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-24 14:45:00 +01:00
Mariusz Szczepańczyk
346624be4a
lavf: set is_connected flag so url can be properly closed
...
Reviewed-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 15:40:03 +02:00
Michael Niedermayer
8f0f678f09
ffmpeg: Do not use the data/size of a bitstream filter after failure
...
Found-by: Rodger Combs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 13:50:02 +02:00
Michael Niedermayer
49038fc17d
Merge commit '41740ef8be6ec409f7eff3932ddba9a9eeec27b1'
...
* commit '41740ef8be6ec409f7eff3932ddba9a9eeec27b1':
libvpx: fix test for VPX_IMAGE_ABI_VERSION
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 12:39:21 +02:00
Michael Niedermayer
7e63a622d1
Merge commit 'a88e21f5b78ef5e75b073ecbfd4e92921002a703'
...
* commit 'a88e21f5b78ef5e75b073ecbfd4e92921002a703':
Fix missing symbols when libvpx has only vp8 enabled
Not merged, the FFmpeg libvpx-vp8 encoder does not use anything from libvpx.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 12:38:40 +02:00
Michael Niedermayer
8f454c3154
Merge commit 'c2de2cf0d2927f3f584dab6d54276fbda92a0a71'
...
* commit 'c2de2cf0d2927f3f584dab6d54276fbda92a0a71':
arm64: constify src in h264qpel dsp function definitions
See: e16b7338d8
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 11:59:02 +02:00
Janne Grunau
41740ef8be
libvpx: fix test for VPX_IMAGE_ABI_VERSION
2015-06-24 08:48:52 +02:00
Mark Webster
a88e21f5b7
Fix missing symbols when libvpx has only vp8 enabled
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2015-06-24 08:47:30 +02:00
Janne Grunau
c2de2cf0d2
arm64: constify src in h264qpel dsp function definitions
2015-06-24 08:41:32 +02:00
Michael Niedermayer
041aa800f2
avformat/mp3dec: Remove the ID3v1 tag removial code
...
The code is simply broken, the read packets are not aligned to
the mp3 frames, the file end or the id3 tag thus this simply
cannot reliably find the ID3v1 tag to remove it
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 02:52:11 +02:00
Michael Niedermayer
89a420b71b
avcodec/mpegaudio_parser: Discard ID3v1 tag at the end
...
Ideally this should be discarded by the demuxer but this is not
possible without fully parsing which would be then very similar
to this. The current ID3v1 discard code in the demuxer does not work
and will be removed in a subsequent commit
The discard code could be adjusted if needed to also discard tags at
other locations than the end or to limit this possibly to input
from the mp3 demuxer or even to move the discarding to the
decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 02:48:37 +02:00
Mariusz Szczepańczyk
b23d2bac0d
lavf/libssh: implement move and delete callbacks
...
Reviewed-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 00:44:09 +02:00
Mariusz Szczepańczyk
0cce94fb10
lavf/libssh: read empty path from url as /
...
Reviewed-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 00:43:17 +02:00
Lukasz Marek
e96f0a692b
lavf/libssh: implement directory listing callbacks
...
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 00:42:55 +02:00
Mariusz Szczepańczyk
71034163ac
lavf/libsmbclient: implement move and delete callbacks
...
Reviewed-by: Lukasz Marek <lukasz.m.luki2@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-24 00:25:24 +02:00
Rodger Combs
94a43dcff1
lavf/brstm: add FATE tests for BFSTM and BCSTM files
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-23 19:44:19 +02:00
Michael Niedermayer
0416b5e033
avcodec/jpeg2000dwt: Replace /2 by >>1
...
Divisions can be slow if the compiler fails to replace them by shifts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-23 18:59:00 +02:00
James Almer
e22edbfd41
swscale/x86/rgb2rgb_template: fix signedness of v in shuffle_bytes_2103_{mmx,mmxext}
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-06-23 13:28:09 -03:00
James Almer
0c15f2f158
swscale/x86/rgb2rgb_template: don't call emms on sse2/avx functions
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-06-23 13:28:03 -03:00
James Almer
910eeab480
swscale/x86/rgb2rgb_template: add missing xmm clobbers
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-06-23 13:27:56 -03:00
Michael Niedermayer
9f997acdd0
avcodec/texturedspenc: Add () to protect macro / argument evaluation order
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-23 17:12:00 +02:00
Gwenole Beauchesne
88325c2e0b
vaapi_h264: fix RefPicList[] field flags.
...
Use new H264Ref.reference field to track field picture flags. The
H264Picture.reference flag in DPB is now irrelevant here.
This is a regression from git commit d8151a7 , and that affected
multiple interlaced video streams.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com >
2015-06-23 13:31:54 +02:00
Sebastien Zwickert
c06fdacc3d
vda: unlock the pixel buffer base address.
...
The pixel buffer base address is never unlocked this causes
a bug with some pixel format types that are produced natively
by the hardware decoder: the first buffer was always used.
Unlock the pixel buffer base address fixes the issue.
2015-06-23 09:20:18 +02:00
Niklesh
813b2f0da3
movtextdec.c: Improve upon dynarrays and text_to_ass
...
Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in >
2015-06-22 22:19:35 -07:00
Michael Niedermayer
7604358018
swscale/rgb2rgb_template: Fix signedness of v in shuffle_bytes_2103_c()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-23 05:09:11 +02:00
Michael Niedermayer
abb833c568
swscale/rgb2rgb_template: Implement shuffle_bytes_0321_c and fix shuffle_bytes_2103_c on BE
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-23 05:09:06 +02:00
Michael Niedermayer
7a4b8817fe
avcodec/texturedsp: Add protective () to RGBA() macro
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-23 04:19:05 +02:00
Michael Niedermayer
b64e70436e
avformat/mpegts: Use STREAM_TYPE_PRIVATE_DATA instead of 6
...
Suggested-by: Wolfgang Lorenz <wl-chmw@gmx.de >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-23 03:42:12 +02:00
Stephan Vedder
b368428fc0
avformat/electronicarts: Fixed ea_probe function to accept vp6a videos
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-23 03:34:33 +02:00
Michael Niedermayer
8575d960fe
tests/fate/image: also run fate-sgi for the fate-image target
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-23 01:46:13 +02:00
Michael Niedermayer
2de6d13622
Changelog: Move HAP to the correct section
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-23 01:29:48 +02:00
Michael Niedermayer
21d2e3d602
avcodec/dds: Fix palettes on big endian
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 23:59:28 +02:00
Michael Niedermayer
ff68b83968
Merge commit '5c018ee18895f88e9e1d2174059dcdd48bf872d2'
...
* commit '5c018ee18895f88e9e1d2174059dcdd48bf872d2':
DirectDraw Surface image decoder
Conflicts:
Changelog
configure
doc/general.texi
libavcodec/Makefile
libavcodec/version.h
tests/fate/image.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 23:34:56 +02:00
Michael Niedermayer
f067ee57c9
avcodec/jpeg2000dwt: Move large arrays used in the test code away from the stack
...
This should avoid problems on systems with little stack space and fix some crashes
in fate
crash found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 23:18:47 +02:00
Michael Niedermayer
8428e2c5f3
avcodec/jpeg2000dwt: Print 1 digit less in the 9/7f DWT test
...
This avoids test failure due to differing rounding between 32 and 64bit x86
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 23:18:38 +02:00
Michael Niedermayer
19dc1ed4ad
avcodec/jpeg2000dwt: Use a tighter check threshold for the 9/7f DWT test
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 23:06:55 +02:00
Michael Niedermayer
55219a78c7
Merge commit '7ca3e5203f133eb41a0b5c3a1d753a7427ba72e7'
...
* commit '7ca3e5203f133eb41a0b5c3a1d753a7427ba72e7':
Hap decoder and encoder
Conflicts:
Changelog
configure
doc/general.texi
libavcodec/allcodecs.c
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 22:47:32 +02:00
Michael Niedermayer
4df3cf90bf
swscale/rgb2rgb_template: Disable shuffle_bytes_2103_c on big endian
...
The function is specific to little endian
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 22:23:22 +02:00
Michael Niedermayer
a5b2b22d9a
Merge commit 'c0b105756f61d253bdabcc2bb49453a2557e7c3b'
...
* commit 'c0b105756f61d253bdabcc2bb49453a2557e7c3b':
txd: Use the TextureDSP module for decoding
Conflicts:
configure
libavcodec/s3tc.c
libavcodec/s3tc.h
libavcodec/txd.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 21:15:50 +02:00
Michael Niedermayer
d1dc22dddd
Merge commit '8337e0c57345f24cf6471220e5f8a0ea21b7c1d0'
...
* commit '8337e0c57345f24cf6471220e5f8a0ea21b7c1d0':
Introduce a TextureDSP module
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 20:57:41 +02:00
Michael Niedermayer
9e5b0f070b
Merge commit '2ecfd451649c7a08cb633635df98e59f7c6e2140'
...
* commit '2ecfd451649c7a08cb633635df98e59f7c6e2140':
Implement Snappy decompression
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 20:47:21 +02:00
Shivraj Patil
f6276842f3
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for block functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for block functions in new file blockdsp_msa.c
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 20:18:10 +02:00
Tobias Rapp
2abdc6f477
fate: add some tests for ffv1 level 3 with 8/10/16 bps
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 19:09:50 +02:00
Michael Niedermayer
d4325b2fea
swr: Remember previously set int_sample_format from user
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 18:34:39 +02:00
Michael Niedermayer
0dd2790df5
swresample/swresample: Clear delayed_samples_fixup in clear_context()
...
This probably makes no difference but its more proper
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 18:34:39 +02:00
Vittorio Giovara
5c018ee188
DirectDraw Surface image decoder
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-22 15:23:08 +01:00
Vittorio Giovara
7ca3e5203f
Hap decoder and encoder
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-22 15:23:08 +01:00
Vittorio Giovara
c0b105756f
txd: Use the TextureDSP module for decoding
...
Using the internal DXTC routines brings support for non multiple of 4
textures. A new test is added to cover this feature. Hashes differ
since the decoding algorithm is different, though no visual changes
have been spotted.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-22 15:23:08 +01:00
Vittorio Giovara
8337e0c573
Introduce a TextureDSP module
...
This module implements generic texture decompression from different
families (DXTC, RGTC, BCn) and texture compression DXTC 1, 3, and 5.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-22 15:23:08 +01:00
Luca Barbato
2ecfd45164
Implement Snappy decompression
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-22 15:23:08 +01:00
Mariusz Szczepańczyk
824a82d1b8
lavf/file: implement move and delete callbacks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 12:46:18 +02:00
Mariusz Szczepańczyk
80e18bb486
lavf/avio: Extend API with avio_move() and avio_delete()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 12:46:08 +02:00
Michael Niedermayer
8fb672b50a
Merge commit '61dc9d647c6664e11674d9a10fdde29987d6acda'
...
* commit '61dc9d647c6664e11674d9a10fdde29987d6acda':
udp: Fix local_port management
Conflicts:
libavformat/udp.c
See: 4f3f5ee1ac
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 12:37:29 +02:00
Luca Barbato
61dc9d647c
udp: Fix local_port management
...
The default value for unset is -1, not 0.
Problem introduced in 66028b7ba6
2015-06-22 10:47:29 +03:00
Michael Niedermayer
4e926fb969
avcodec/jpeg2000: Move L band scaling from the 9/7f wavelet to quantization stage
...
This reduces the number of operations
Its not done for 9/7i as that would overflow thanks to JPEG2000 allowing
32 decomposition levels
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 03:01:24 +02:00
Michael Niedermayer
b1fdf81c6e
avcodec/jpeg2000dwt: use 32x32->64 multiplies in the 9/7i DWT
...
This significantly improves the quality when the integer 9/7 transform
is used
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 02:27:50 +02:00
Michael Niedermayer
6c7b1597c7
avcodec/jpeg2000: Move H band scaling from wavelet into quantization code
...
This reduces the number of operations done and is equivalent except for
rounding
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 02:00:57 +02:00
Michael Niedermayer
69f7ccef8e
avcodec/jpeg2000dwt: Move K/X constants to header
...
this makes them accessible by the rest of the jpeg2000 code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 01:54:51 +02:00
Michael Niedermayer
1c495b0bf6
avcodec/jpeg2000: Move gainb handling into the quantization code
...
thats how the specification defines it, this also improves numerical
accuracy of the integer wavelet implementation. It otherwise should
be equivalent, in case of overflows this can be reverted.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-22 01:36:05 +02:00
Reynaldo H. Verdejo Pinochet
6504047f82
ffserver: drop unneeded else branching
...
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com >
2015-06-21 19:06:00 -03:00
Reynaldo H. Verdejo Pinochet
758c7a5cbc
ffserver: drop unneeded else branching
...
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com >
2015-06-21 19:06:00 -03:00
Reynaldo H. Verdejo Pinochet
683f57354d
ffserver: drop unneeded else branching
...
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com >
2015-06-21 19:06:00 -03:00
Reynaldo H. Verdejo Pinochet
d8a04d916b
ffserver: formating
...
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com >
2015-06-21 19:06:00 -03:00
Rob Sykes
c70c6be225
swresample: soxr implementation for swr_get_out_samples()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 23:38:44 +02:00
Michael Niedermayer
1e7008675b
Merge commit '8655c54160767de1a6b96f8bc310d6e4eaceff48'
...
* commit '8655c54160767de1a6b96f8bc310d6e4eaceff48':
libvpx: Support the vp9 extended profiles
Conflicts:
Changelog
configure
libavcodec/libvpx.c
libavcodec/libvpx.h
libavcodec/libvpxdec.c
libavcodec/libvpxenc.c
libavcodec/version.h
mostly not merged, as requested by jamrial
See: 01e59d48ed
See: 079b7f6eac and others
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 22:57:54 +02:00
Michael Niedermayer
30e9ebb14f
Merge commit '05bf3f54e6078716f6267df530bf1d474ca3d606'
...
* commit '05bf3f54e6078716f6267df530bf1d474ca3d606':
libvpx: Do not set vp8 only parameters when encoding in vp9
Conflicts:
libavcodec/libvpxenc.c
See: 238ec505e2
See: ae330070ee
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 21:08:05 +02:00
Michael Niedermayer
f399f826ee
Merge commit 'c060d046aa2f89c0e601a2dcfbce53f0e36cf498'
...
* commit 'c060d046aa2f89c0e601a2dcfbce53f0e36cf498':
af_resample: Set the number of samples in the last frame
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 20:55:23 +02:00
Michael Niedermayer
ae215e2b42
Merge commit '6ec688e1bc76dd93151cbca1c340162ae4b10d77'
...
* commit '6ec688e1bc76dd93151cbca1c340162ae4b10d77':
mp3: enable packed main_data decoding in MP4
Conflicts:
libavcodec/mpegaudiodec_template.c
Only the parts needed to support the available sample are merged
the remaining error checks are left in place
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 20:32:06 +02:00
Michael Niedermayer
3bcf61f495
avcodec/jpeg2000dwt: Fix value of F_LFTG_X and I_LFTG_X
...
Even if the jpeg2000 spec uses a wrong value this does not
make mathematics work this way, also this has been corrected in the 2004
version AFAIK
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 19:25:35 +02:00
Michael Niedermayer
5de3a589f1
swresample/swresample: Print used int_sample_fmt
...
Suggested-by: wm4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 18:12:56 +02:00
Michael Niedermayer
4977692461
swresample: Choose 16bit internally only if input and output is 16bit or less
...
or if no rematrix and no resampling is performed and the input is 16bit
note reampling and rematrix itself always use more than 16bit internally
the "internal" sampling format is the format between these steps
Its unlikely the difference from this commit is audible in any case
unless there is some bug either before or after the change.
but multiple people prefer this and it slightly improves the precission
of computations.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 17:33:46 +02:00
Michael Niedermayer
4299f085f4
avcodec/jpeg2000dwt: also test 9/7 float DWT
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 15:52:53 +02:00
Luca Barbato
8655c54160
libvpx: Support the vp9 extended profiles
...
Bump the minimum libvpx version to 1.3.0 and rework the configure logic
to fail only if no decoders and encoders are found.
Based on the original patch from Vittorio.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-06-21 16:27:18 +03:00
Michael Niedermayer
6528b90dea
avcodec/jpeg2000dwt: List differences for DWT test
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 13:43:02 +02:00
Michael Niedermayer
aa594415a0
avcodec/jpeg2000dwt: increase the number of test iterations
...
the code had too little coverage
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 13:43:02 +02:00
Michael Niedermayer
d23b3f3940
avcodec/jpeg2000dwt: Also test 9/7 integer DWT
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 13:43:02 +02:00
Michael Niedermayer
3bd46914fb
avcodec/jpeg2000dwt: Allow testing with a maximum allowed difference
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 13:43:02 +02:00
Paul B Mahol
a49154e9d7
avformat/brstm: support little-endian s16 PCM
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-21 10:32:13 +00:00
Rodger Combs
0f67351944
lavc/adpcm: THP: don't use the ADPC/SEEK table when not seeking
...
This is almost certainly closer to how the actual Nintendo players work,
and fixes some output pops in files with blank ADPC/SEEK tables (like
those from brawlcustommusic).
2015-06-21 10:32:13 +00:00
Rodger Combs
d2ce10093e
lavf/brstm: handle a BFSTM endianness oddity
2015-06-21 10:32:13 +00:00
Rodger Combs
9c9cf3956c
lavf/brstm: add support for seeking
2015-06-21 10:32:12 +00:00
Rodger Combs
70a39bcf1c
lavf/brstm: cleanup; fix short-block demuxing
2015-06-21 10:32:12 +00:00
Rodger Combs
6c56827e62
lavf/brstm: move bfstm var to a local
2015-06-21 10:32:12 +00:00
Michael Niedermayer
6c8a05268c
avformat/rawenc: Store sample number for ADX
...
Fixes Ticket4540
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 12:16:24 +02:00
Paul B Mahol
95ee0fbacf
Support demuxing 4gv codec stored in qcp files
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-21 09:30:01 +00:00
Michael Niedermayer
54649cbda8
ffmpeg_opt: Fix handling of creation_time now
...
Fixes Ticket4495
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 04:57:20 +02:00
Michael Niedermayer
f98c3ec5c6
avformat/movenc: Check return code of ff_iso8601_to_unix_time()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 04:18:08 +02:00
Michael Niedermayer
dde6b2a355
avcodec/mjpegdec: dont try to combine fields for decimated multiscope 2 material
...
Fixes Ticket4535
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 02:53:06 +02:00
James Zern
9b747500f3
libvpxenc: support setting colorspace for vp9
...
the vp9 bitstream supports 8 values:
unknown (default), bt601, bt709, smpte170, smpte240, bt2020, reserved
and sRGB.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com >
Signed-off-by: James Zern <jzern@google.com >
2015-06-20 16:30:46 -07:00
Rodger Combs
631d56ffc8
lavc/adpcm: THP: fix indentation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-21 00:34:21 +02:00
Michael Niedermayer
e70fd57de5
avcodec/mqcenc: Remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 22:36:15 +02:00
Simon Thelen
7cbb52ecab
libavfilter/formats: Fix parsing of channel specifications with a trailing 'c'.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 19:51:14 +02:00
Rodger Combs
6b547180b9
lavc/adpcm: THP: allow channel counts up to 10
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 19:21:53 +02:00
Rodger Combs
db426031dd
lavf/brstm: allow larger block sizes
...
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 19:21:08 +02:00
Rodger Combs
d4c9eced98
lavf/brstm: support little-endian files (BCSTM; 3DS)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 16:50:47 +02:00
Rodger Combs
8e7a06aa5c
lavc/adpcm: THP: handle packets with sample counts not divisible by 14
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 16:33:57 +02:00
Rodger Combs
7e7256c3a4
lavc: add little-endian ADPCM_THP decoder
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 16:33:39 +02:00
Michael Niedermayer
f230b9671f
fate: add avfilter/formats-test
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 14:26:34 +02:00
Michael Niedermayer
50ee17340b
avfilter/formats: Add test for ff_parse_channel_layout()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 14:26:34 +02:00
Michael Niedermayer
bb9f4f94ac
avcodec/jpeg2000dec: Replace TPsot check by assert
...
The condition is impossible now.
the TPsot type is changed to unsigned int to prevent gcc from producing warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 14:26:34 +02:00
Michael Niedermayer
5ba9ec824a
avcodec/jpeg2000dec: Increase tile part limit to 256
...
This is the maximum that the syntax of jpeg2000 is capable to store
Fixes Ticket4639
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 14:26:34 +02:00
Luca Barbato
05bf3f54e6
libvpx: Do not set vp8 only parameters when encoding in vp9
2015-06-20 12:18:01 +03:00
Luca Barbato
c060d046aa
af_resample: Set the number of samples in the last frame
...
Otherwise trailing zeroes would appear.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-06-20 12:18:01 +03:00
nu774
6ec688e1bc
mp3: enable packed main_data decoding in MP4
...
14496-3 suggests packing main_data of MP3 that is usually scattered
into multiple frames due to bit reservoir.
However, after packing main_data into a access unit, bitrate index
in the MPEG audio frame header doesn't match with actual frame size.
In order to accept this, this patch removes unnecessary frame size
checking on mp3 decoder.
Also, mov demuxer was changed to use MP3 parser only on special cases
(QT MOV with specific sample description) to avoid re-packetizing.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-06-20 12:18:01 +03:00
James Almer
6fb96afdd6
avutil/fixed_dsp: remove ff_ prefix from static function
...
Signed-off-by: James Almer <jamrial@gmail.com >
2015-06-20 03:39:09 -03:00
Michael Niedermayer
5358953cdf
avcodec/jpeg2000dwt: Fill array using 2d instead of 1d accesses
...
Avoids gcc warning
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 02:14:19 +02:00
Michael Niedermayer
116e7d5418
avcodec/jpeg2000dwt: Factor dwt test code out so it can be easily used with the other dwts too
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 02:10:39 +02:00
Michael Niedermayer
a75ca3ca6a
avcodec/jpeg2000dwt: Fix special cases in sd_1d53()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 01:40:17 +02:00
Michael Niedermayer
0ce918c45b
tests/fate: Add fate-j2k-dwt
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 01:37:43 +02:00
Michael Niedermayer
de99ce4306
avcodec/jpeg2000dwt: add test for the 5/3 wavelet
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 01:37:43 +02:00
Michael Niedermayer
75651cd63f
avcodec/jpeg2000dwt: Fix order of operations in integer decomposition wavelets
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-20 00:53:56 +02:00
Michael Niedermayer
7e2bdea764
avcodec/j2kenc: Use JP2 format by default
...
Without the JP2 fields its not possible to identify the colorspace
Fixes Ticket538
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-19 21:56:57 +02:00
Michael Niedermayer
9a2fc170b1
avcodec/j2kenc: Support writing JP2 encapsulation
...
The added option matches openjpeg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-19 21:51:25 +02:00
Michael Niedermayer
8edc17b639
avcodec/dpxenc: implement write16/32 as functions
...
Fixes undefined behavior and segfault
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-19 16:51:54 +02:00
Michael Niedermayer
52e02a9e59
avutil/avstring: Do not print NULL
...
Fixes segfault
Fixes Ticket4452
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-19 15:57:32 +02:00
Shivraj Patil
ee3ef5fda2
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for hpel functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for hpel functions in new file hpeldsp_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-19 14:00:12 +02:00
Michael Niedermayer
d277b05c51
avcodec/fic: Add skip_cursor AVOption
...
Previous version reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-19 13:57:36 +02:00
James Almer
a9af9da631
library.mak: Workaround SDL redefining main and breaking fate tests on mingw
...
Fixes Ticket3368
Commit message by commiter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-19 12:12:27 +02:00
Michael Niedermayer
bb3703a4c3
avcodec/j2kenc: YUV should not use the ICT
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-19 05:12:06 +02:00
Michael Niedermayer
d1dce1c517
avutil/crc: Fix type of p table so its content fits without overflwoing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-19 02:25:48 +02:00
Michael Niedermayer
2c881c7d45
avutil/avstring: Fix undefined shift
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-19 02:25:48 +02:00
Michael Niedermayer
fdbad24090
avutil/aes: Fix types
...
Fixes "warning: argument #2 is incompatible with prototype:"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-19 02:25:48 +02:00
Michael Niedermayer
d8a227f231
avutil/adler32: Fix data type in test code
...
Fixes "warning: argument #2 is incompatible with prototype:"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-19 02:25:48 +02:00
Michael Niedermayer
76cc8582fd
avcodec/fft-test: fix type of cpuflags
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-19 02:25:48 +02:00
Andreas Cadhalpun
590743101d
postproc: fix unaligned access
...
QP_store is only 8-bit-aligned, so accessing it as uint32_t causes
SIGBUS crashes on sparc.
The AV_RN32/AV_WN32 macros only do unaligned access in the
HAVE_FAST_UNALIGNED case.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-19 01:47:59 +02:00
Andreas Cadhalpun
d216b9debd
vp9: don't retain NULL as segmentation_map
...
This fixes segmentation faults, which were introduced in commit
4ba8f327 .
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-19 00:07:43 +02:00
wm4
f6c3f1ed60
avformat: clarify what package needs to be compiled with SSL support
...
Try to reduce user confusion.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-18 22:26:36 +02:00
wm4
d4007d1763
id3v2: strip trailing spaces from APIC tag
...
The APIC description must be unique, and some ID3v2 tag writers add
spaces to write several APIC entries with the same description. The
trailing spaces simply serve as a way to disambiguate the description.
Do this so that API users do not have to special-case mp3 to fix this
cosmetic issue.
Requested-by: wm4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-18 19:15:49 +02:00
Michael Niedermayer
622f1468c9
avformat/id3v2: detect PNG by header instead of mime
...
the mimetype for PNG can be set to jpeg
Fixes 01\ -\ Cider\ Time.mp3
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-18 18:38:53 +02:00
Michael Niedermayer
57078e4d25
avcodec/hevc_ps: Only discard overread VPS if a previous is available
...
Fixes Ticket4621
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-18 18:03:21 +02:00
Michael Niedermayer
7b1c03aa74
avcodec/libx264: Avoid reconfig on equivalent aspect ratios
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-18 14:40:11 +02:00
Shivraj Patil
98eb1ac901
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for qpel functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for qpel functions in new file qpeldsp_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-18 12:33:15 +02:00
Michael Niedermayer
d1050d9950
ffmpeg: Free last_frame instead of just unref
...
Fixes Ticket4611
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-18 05:27:08 +02:00
Michael Niedermayer
08326e73a2
avcodec/jpeg2000dec: Continue decoding reslevels even when empty ones are encountered
...
Fixes Ticket4635
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-18 02:23:37 +02:00
Michael Niedermayer
3a6a8f6ee1
avcodec/ffv1enc: fix bps for >8bit yuv when not explicitly set
...
Fixes Ticket4636
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-18 01:01:06 +02:00
George Boyle
47cadf4d1f
avcodec/flacenc: Regression test for ticket #4628
...
Corresponding commit: 2469ed32c8
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 22:47:17 +02:00
Michael Niedermayer
23c22d37d2
Merge commit '1e79d5c6e73ad131f9395f337b58a2b59ee04c1b'
...
* commit '1e79d5c6e73ad131f9395f337b58a2b59ee04c1b':
libwebpenc: use WebPMemoryWriterClear()
See: 7997d78643
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 21:00:50 +02:00
Michael Niedermayer
98b95e7466
Merge commit 'd8d124eebcf2ec1f6a1936b12a4f00a48f08e85c'
...
* commit 'd8d124eebcf2ec1f6a1936b12a4f00a48f08e85c':
aic: Improve error reporting
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 20:53:34 +02:00
Michael Niedermayer
4624656797
avcodec/j2kenc: Properly flush the end of the truncated AC stream
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 20:39:03 +02:00
Michael Niedermayer
e6190045b3
avcodec/mqcenc: Add ff_mqc_flush_to()
...
This is needed to separate the end padding from the bitstream, allowing
to end it multiple times without disturbing it.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 20:11:43 +02:00
Michael Niedermayer
2687a51a3f
avcodec/jpeg2000dec: Drop unneeded rlevel variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 15:48:12 +02:00
Michael Niedermayer
7c3f7e6ed1
avcodec/jpeg2000dwt: Support 9/7 singularity cases on the encoder side
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 15:24:14 +02:00
James Almer
1e79d5c6e7
libwebpenc: use WebPMemoryWriterClear()
...
WebPMemoryWriterClear() must be used instead of free() when
libwebp ABI version is > 0x0203.
Signed-off-by: James Almer <jamrial@gmail.com >
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-17 14:13:43 +01:00
Michael Niedermayer
9841024402
avcodec/jpeg2000dwt: More special cases to handle singularities in 9/7 decode
...
Fixes Ticket4634
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 15:07:50 +02:00
Vittorio Giovara
d8d124eebc
aic: Improve error reporting
2015-06-17 14:06:35 +01:00
Shivraj Patil
63eaf529bc
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for H263 lpf functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for H263 lpf functions in new file h263dsp_msa.c
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 13:50:14 +02:00
Rodger Combs
bb42a7d4d4
lavf/brstm: add support for BFSTM files
...
Previous version reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 13:24:11 +02:00
wm4
dc87758775
avio: fix potential crashes when combining ffio_ensure_seekback + crc
...
Calling ffio_ensure_seekback() if ffio_init_checksum() has been called
on the same context can lead to out of bounds memory accesses and
crashes. The reason is that ffio_ensure_seekback() does not update
checksum_ptr after reallocating the buffer, resulting in a dangling
pointer.
This effectively fixes potential crashes when opening mp3 files.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 01:13:19 +02:00
Michael Niedermayer
e29d996149
swscale/output: Add rgba64/rgb48/bgra64/bgr48 output functions with full chroma interpolation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 00:45:46 +02:00
Michael Niedermayer
f140a99f8b
swscale/output: Factorize rgb48 and 64bit code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 00:45:46 +02:00
Michael Niedermayer
1125c71fd7
avcodec/jpeg2000dwt: assert that mod == 0 for encoding
...
We are missing the handling of some special cases for this.
These cases should be unused and there should be no reason
to ever use them unless some spec dictates their use
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-17 00:44:27 +02:00
Andreas Cadhalpun
28efeb6502
doc: avoid incorrect phrase 'allows to'
...
Also fix typo found by Lou Logan:
Sacrifying -> Sacrificing
Reviewed-by: Lou Logan <lou@lrcd.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-16 21:48:51 +02:00
Andreas Cadhalpun
72654526e4
configure: make makeinfo_html check more robust
...
The current check is too strict for newer makeinfo versions.
Existing version strings are:
makeinfo (GNU texinfo) 4.13
makeinfo (GNU texinfo) 5.2
texi2any (GNU texinfo) 5.9.93
Probably version 6 will come in the not too far future.
Reviewed-by: Timothy Gu <timothygu99@gmail.com >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-16 21:47:17 +02:00
Andreas Cadhalpun
92e79a2f7b
matroskadec: validate audio channels and bitdepth
...
In the TTA extradata re-construction the values are written with
avio_wl16 and if they don't fit into uint16_t, this triggers an
av_assert2 in avio_w8.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-16 21:46:04 +02:00
Andreas Cadhalpun
5b76c82fd7
matroskadec: check audio sample rate
...
And default to 8000 if it is invalid.
An invalid sample rate can trigger av_assert2 in av_rescale_rnd.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-16 21:45:45 +02:00
Paul B Mahol
e0dac40306
avcodec/codec_desc: rename smv video codec name to smvjpeg to match decoder name
...
Also fixes clash with smv audio codec.
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-16 19:17:28 +00:00
Michael Niedermayer
34121ca187
avcodec/jpeg2000dwt: Fix 9/7 IDWT for small sizes
...
Fixes Ticket4631
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-16 20:33:54 +02:00
Michael Niedermayer
8294ec67b5
avcodec/jpeg2000dwt: add special cases for handling length 1 in 5/3 decode
...
Fixes Ticket4630
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-16 20:16:53 +02:00
Michael Niedermayer
20657e05bc
avcodec/jpeg2000dec: Improve end check
...
Fixes spurious end mismatch warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-16 18:34:20 +02:00
Michael Niedermayer
36241c4055
avcodec/jpeg2000dec: Fix term_cnt check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-16 18:31:59 +02:00
Christian Suloway
918abc19ff
MAINTAINERS: add myself as hls encryption maintainer
...
Signed-off-by: Christian Suloway <csuloway@globaleagleent.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-16 16:52:38 +02:00
Christian Suloway
7e871d6999
avformat/hlsenc: removed empty/unused print_encryption_tag function
...
Signed-off-by: Christian Suloway <csuloway@globaleagleent.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-16 16:52:38 +02:00
Michael Niedermayer
cf11fd632e
avformat/mxfdec: Change version byte for JPEG2000 to match mxf.c and RP224v12
...
This should make no difference as the byte is ignored
Found-by: tim nicholson <nichot20@yahoo.com >
Reviewed-by: tim nicholson <nichot20@yahoo.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-16 13:28:44 +02:00
George Boyle
2469ed32c8
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 >
2015-06-16 12:55:20 +02:00
James Zern
202188a26c
doc/muxers.texi: properly insert {}s in example
...
use '@{' / '@}', fixes compile errors:
*** '{' without macro. Before: 1:-'.'}
*** '}' without opening '{' before:
since:
907ac20 avformat/hlsenc: added HLS encryption
Signed-off-by: James Zern <jzern@google.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-16 12:13:43 +02:00
Christian Suloway
907ac20aa2
avformat/hlsenc: added HLS encryption
...
Added HLS encryption with -hls_key_info_file <key_info_file> option. The
first line of key_info_file specifies the key URI written to the
playlist. The key URL is used to access the encryption key during
playback. The second line specifies the path to the key file used to
obtain the key during the encryption process. The key file is read as a
single packed array of 16 octets in binary format. The optional third
line specifies the initialization vector (IV) as a hexadecimal string to
be used instead of the segment sequence number (default) for encryption.
Changes to key_info_file will result in segment encryption with the new
key/IV and an entry in the playlist for the new key URI/IV.
Key info file format:
<key URI>
<key file path>
<IV> (optional)
Example key URIs:
http://server/file.key
/path/to/file.key
file.key
Example key file paths:
file.key
/path/to/file.key
Example IV:
0123456789ABCDEF0123456789ABCDEF
Example:
ffmpeg -f lavfi -i testsrc -c:v h264 -hls_key_info_file file.keyinfo
foo.m3u8
file.keyinfo:
http://server/file.key
/path/to/file.key
0123456789ABCDEF0123456789ABCDEF
Example shell script:
BASE_URL=${1:-'.'}
openssl rand 16 > file.key
echo $BASE_URL/file.key > file.keyinfo
echo file.key >> file.keyinfo
echo $(openssl rand -hex 16) >> file.keyinfo
ffmpeg -f lavfi -re -i testsrc -c:v h264 -hls_flags delete_segments \
-hls_key_info_file file.keyinfo out.m3u8
--
Signed-off-by: Christian Suloway <csuloway@globaleagleent.com >
Signed-off-by: Dan Dennedy <dan@dennedy.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-16 03:25:31 +02:00
Michael Niedermayer
fefe04259a
avcodec/jpeg2000dec: increase tile part limit to 32
...
Fixes Ticket4629
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 23:24:49 +02:00
Paul B Mahol
eb85060b84
avfilter/af_afade: add couple of more curves
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-15 20:55:05 +00:00
Michael Niedermayer
12e36a3dfd
Merge commit 'a4fbd55d6e03eabdbecc3b7892ec09eb8062d066'
...
* commit 'a4fbd55d6e03eabdbecc3b7892ec09eb8062d066':
h264: er: Copy from the previous reference only if compatible
See: fdc64a1044
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 22:30:53 +02:00
Michael Niedermayer
20526f2e2f
Merge commit '9af7e8045e3e63ab39adedae9a7c11b1c410af26'
...
* commit '9af7e8045e3e63ab39adedae9a7c11b1c410af26':
lavc: Clarify the behaviour of dimension and format context fields
Conflicts:
libavcodec/avcodec.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 22:11:43 +02:00
Michael Niedermayer
4ed3a01d71
Merge commit '03ca6d70df192125a772dadd01acfe3905aa653f'
...
* commit '03ca6d70df192125a772dadd01acfe3905aa653f':
x264: Factor out the reconfiguration code
Conflicts:
libavcodec/libx264.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 21:56:26 +02:00
Michael Niedermayer
efcf8cfa48
Merge commit '24ad3ac6a3e20350214e6c3f7a931635f264ae07'
...
* commit '24ad3ac6a3e20350214e6c3f7a931635f264ae07':
nut: Drop doxygen markers
Conflicts:
libavformat/nut.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 21:41:20 +02:00
James Zern
a829040c43
libvpxenc: remove stray '\'s
...
Signed-off-by: James Zern <jzern@google.com >
2015-06-15 12:36:38 -07:00
James Zern
e6c71385f0
libvpxenc: cosmetics: reindent after 2c70436
...
Signed-off-by: James Zern <jzern@google.com >
2015-06-15 12:36:37 -07:00
Michael Niedermayer
c5fc48fdfb
Merge commit '07b2db81d06e1cd6b1718d3e2dd7a42e8bccf8c0'
...
* commit '07b2db81d06e1cd6b1718d3e2dd7a42e8bccf8c0':
riff: Add MNM4 FourCC as mpeg4
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 21:18:13 +02:00
James Zern
8ce321f0aa
encoders.texi: update libvpx documentation
...
modeled after the libx264 section.
Reviewed-by: Lou Logan <lou@lrcd.com >
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: James Zern <jzern@google.com >
2015-06-15 12:09:02 -07:00
Michael Niedermayer
2819aeb0f3
avcodec/jpeg2000dec: Omit mqc reinit after the last pass
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 20:49:04 +02:00
Paul B Mahol
d107413f1c
doc/filters: add one more compand example found in the wild
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-15 17:20:23 +00:00
Andreas Cadhalpun
dd6c8575db
examples/demuxing_decoding: use properties from frame instead of video_dec_ctx
...
This is more robust.
And only check if there is actually a frame returned.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-15 18:32:18 +02:00
Andreas Cadhalpun
fdc64a1044
h264: er: Copy from the previous reference only if compatible
...
Also use the frame pixel format instead of the one from the codec
context, which is more robust.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-15 18:32:18 +02:00
Michael Niedermayer
96bbbebaf9
avcodec/jpeg2000dec: Fix Vertically causal context formation
...
Fixes Ticket4626
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 18:12:45 +02:00
Michael Niedermayer
021351f246
avcodec/mqcdec: set raw flag at the begin of ff_mqc_initdec()
...
This way it is available to any functions called from ff_mqc_initdec()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 17:11:01 +02:00
Andreas Cadhalpun
a4fbd55d6e
h264: er: Copy from the previous reference only if compatible
...
Also use the frame pixel format instead of the one from the codec
context, which is more robust.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2015-06-15 13:39:07 +02:00
Luca Barbato
9af7e8045e
lavc: Clarify the behaviour of dimension and format context fields
...
The AVCodecContext width, height, coded_width, coded_height and format
are used mainly as decoding hints and they get internally overwritten
during the data parsing stage.
Do not assume they match the last AVFrame provided by
avcodec_decode_video2 and assimilated functions since multi-threading
and other frame reordering might make those values to refer to frames
that will be outputted in the future.
CC: libav-stable@libav.org
2015-06-15 13:39:07 +02:00
Luca Barbato
03ca6d70df
x264: Factor out the reconfiguration code
2015-06-15 13:39:07 +02:00
Luca Barbato
24ad3ac6a3
nut: Drop doxygen markers
2015-06-15 13:39:07 +02:00
Michael Niedermayer
4ec14ce121
avcodec/jpeg2000dec: Improve readability of SOP check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 13:29:41 +02:00
Vittorio Giovara
07b2db81d0
riff: Add MNM4 FourCC as mpeg4
2015-06-15 12:29:25 +01:00
Michael Niedermayer
9ba5fe7f3d
avcodec/jpeg2000dec: Remove redundant check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 03:11:58 +02:00
Michael Niedermayer
5b0f55aab9
avcodec/jpeg2000dec: Check reslevelno in RPCL
...
Fixes out of array read
Fixes Ticket4627
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 03:00:53 +02:00
Michael Niedermayer
a58f1bcc4c
avcodec/jpeg2000dec: Skip SOP
...
Fixes Ticket4625
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 02:32:45 +02:00
Michael Niedermayer
4bfdd967a6
avcodec/jpeg2000dec: Use <0 instead of != 0 for error checking
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 02:19:48 +02:00
Michael Niedermayer
5ef578d03a
avcodec/jpeg2000dec: Also include remaining length in "Block length" error message
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 01:43:14 +02:00
Michael Niedermayer
dd9400930a
Merge commit '74ea1167d91ccb2e1f2943efa030f2c278b598be'
...
* commit '74ea1167d91ccb2e1f2943efa030f2c278b598be':
tls_gnutls: fix hang on disconnection
See: 2222f419da
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-15 01:30:55 +02:00
Michael Niedermayer
ec5164aa31
avcodec/jpeg2000: Fix regression with multiple tiles
...
Fixes Ticket 4624
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-14 22:59:50 +02:00
Michael Niedermayer
a206c13289
avcodec/jpeg2000: Change codeblock coords to same origin as bands
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-14 22:59:50 +02:00
Michael Niedermayer
d9841e53e2
avcodec/jpeg2000: Change precinct coords to same origin as bands
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-14 22:59:42 +02:00
Michael Niedermayer
59c107292c
avcodec/jpeg2000: Fix band coords
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-14 21:58:38 +02:00
Michael Niedermayer
6b08dc393b
avcodec/jpeg2000dec: Print warning if the mqc pointer mismatches at the end
...
If this occurs on valid and correctly decoded files it should be reduced to debug
level
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-14 21:40:09 +02:00
wm4
2222f419da
tls_gnutls: fix hang on disconnection
...
GNUTLS_SHUT_RDWR means GnuTLS will keep waiting for the server's
termination reply. But since we don't shutdown the TCP connection at
this point yet, GnuTLS will just keep skipping actual data from the
server, which basically is perceived as hang.
Use GNUTLS_SHUT_WR instead, which doesn't have this problem.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-14 21:40:08 +02:00
Michael Niedermayer
91c8025c44
avcodec/jpeg2000dec: Show the progression order at debug level for all variants
...
It was previously shown just for some, this makes it consistent
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-14 21:40:08 +02:00
Paul B Mahol
20ee65ef73
avfilter/af_afade: use av_clipd() instead of nested FFMAX & FFMIN
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-14 17:08:43 +00:00
wm4
74ea1167d9
tls_gnutls: fix hang on disconnection
...
GNUTLS_SHUT_RDWR means GnuTLS will keep waiting for the server's
termination reply. But since we don't shutdown the TCP connection at
this point yet, GnuTLS will just keep skipping actual data from the
server, which basically is perceived as hang.
Use GNUTLS_SHUT_WR instead, which doesn't have this problem.
Signed-off-by: Martin Storsjö <martin@martin.st >
2015-06-14 19:50:03 +03:00
Michael Niedermayer
742a26c489
avcodec/jpeg2000dec: Print error messages for more error conditions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-14 15:15:51 +02:00
Andreas Cadhalpun
ed0b1db640
doc: fix spelling errors
...
Neccessary -> Necessary
formated -> formatted
thee -> the
eventhough -> even though
seperately -> separately
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-14 15:09:33 +02:00
Michael Niedermayer
ad072a134f
avcodec/jpeg2000dec: Handle format that has planes matching YUVA420P structure but seems not to be that
...
Outputs something for p0_05.j2k
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-14 13:01:12 +02:00
Michael Niedermayer
132bf0bbb7
avcodec/jpeg2000dec: Print all cdx/cdy values not just the 2nd and 3rd
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-14 11:49:49 +02:00
Clément Bœsch
1dee7a31e0
avfilter: bump minor after colorkey addition
2015-06-14 11:20:47 +02:00
Philip Langdale
1b19d0c632
avcodec/hevc: Track long and short term RPS size for VDPAU
...
Today, we track the short term RPS size for DXVA, but only if the
SliceHeader RPS is being used. Otherwise it's left uninitialized.
NVIDIA's VDPAU implementation requires that the size be accurately
tracked even if an SPS RPS is being used. In this case, it's really
counting the size of the RPS idx information, but you end up with
mangled output if the value is not accurate.
VDPAU also needs the size of the long term RPS.
Signed-off-by: Philip Langdale <philipl@overt.org >
2015-06-13 21:09:24 -07:00
Philip Langdale
01fac84fe4
avcodec/nvenc: Enable YV12 input format
...
This has been enabled by recent nvidia driver releases.
Signed-off-by: Philip Langdale <philipl@overt.org >
2015-06-13 21:09:24 -07:00
Michael Niedermayer
4a3bc0d9a5
avcodec/jpeg2000dec: Implement "Reset context probabilities on coding pass boundaries"
...
No testcase with just this feature known
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-14 03:38:41 +02:00
James Almer
20abb1afe5
softfloat: make av_div_sf() inline
...
Removes a defined but not used warning on files including softfloat.h
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-06-13 22:28:39 -03:00
Michael Niedermayer
612f8cae06
avcodec/jpeg2000dec: Support RPCL
...
Fixes Ticket 2792
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-14 02:53:51 +02:00
Timo Rothenpieler
f17d973413
avfilter/vf_colorkey: Add colorkey video filter
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-14 01:04:14 +02:00
James Almer
4aebaed0e1
avformat/singlejpeg: fix standalone compilation
2015-06-13 17:47:13 -03:00
James Almer
9f815bc2c2
avcodec/jpeg200dsp: add ff_rct_int_{sse2,avx2}
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-06-13 16:53:31 -03:00
James Almer
7912a6830d
avcodec/jpeg200dsp: add ff_ict_float_{sse,avx}
...
Original intrinsics version by Nicolas Bertrand.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Almer <jamrial@gmail.com >
2015-06-13 16:53:27 -03:00
Michael Niedermayer
a98d4d5207
avfilter/drawutils: Assert av_pix_fmt_desc_get() return value in ff_fill_line_with_color()
...
Theres currently no case where this could be triggered
Found-by: Daemon404
Reviewed-by: Nicolas George <george@nsup.org >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-13 21:33:18 +02:00
Clément Bœsch
8978052869
avfilter/lut3d: assert on pixel format descriptor
...
inlink->format is supposed to be set to a valid format controlled by query_formats().
2015-06-13 20:51:43 +02:00
Clément Bœsch
a056636c81
avfilter/geq: assert on pixel format descriptor
...
inlink->format is supposed to be set to a valid format controlled by query_formats().
2015-06-13 20:51:43 +02:00
Andreas Cadhalpun
45babb0121
configure: only disable VSX for !ppc64el
...
This reverts commit 04f0002 , which made it impossible to enable VSX with
a generic cpu.
This changes the behavior back to what it was before commit b0af404 .
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-13 20:42:38 +02:00
Clément Bœsch
324cf0645d
avcodec/ass_split: check ASSSplitContext alloc
2015-06-13 20:39:57 +02:00
Michael Niedermayer
c3517c377e
avcodec/jpeg2000dec: Support PCRL
...
Fixes Ticket4603
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-13 13:56:49 +02:00
Michael Niedermayer
eb1beb9e1c
avcodec/jpeg2000dec: Try to fix remaining DCinema hardcoded TODOs in CPRL
...
Again, no testcase
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-13 13:37:56 +02:00
Michael Niedermayer
0a3eb0422a
avcodec/jpeg2000dec: try to correct tile location in CPRL code
...
No testcase
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-13 13:09:13 +02:00
Michael Niedermayer
7c244349fc
avcodec/jpeg2000dec: Factorize component out of CPRL loop
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-13 13:09:13 +02:00
Michael Niedermayer
86efe83177
avcodec/jpeg2000dec: Fix x/y step TODO for CPRL
...
No testcase known
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-13 13:09:13 +02:00
Carl Eugen Hoyos
3323c5f353
Remove a few occurences of "long long" from the libraries.
2015-06-13 09:28:41 +02:00
Shivraj Patil
178ba1fd03
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for AVC qpel functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for AVC qpel functions in new file h264qpel_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h
Added const to local static array.
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-13 02:21:55 +02:00
Michael Niedermayer
b8ba2d3915
examples/decoding_encoding: Use the AVFrame width/height for processing images after decoding
...
This is what FFmpeg / FFplay do and it is more robust
Reviewed-by: Stefano Sabatini <stefasab@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-13 02:14:26 +02:00
Michael Niedermayer
a75d22445e
ffprobe: check av_asprintf() for failure
...
Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-13 01:45:27 +02:00
Michael Niedermayer
df037fe107
avcodec/smvjpegdec: assert that the pixel format that has been set by our decoder is valid
...
If we do check av_pix_fmt_desc_get() then we should fail and
not continue with an invalid pix_fmt
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-13 00:51:29 +02:00
Michael Niedermayer
e0db41316a
avfilter/drawutils: Fix format validity check in ff_draw_init()
...
Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-13 00:06:28 +02:00
Michael Niedermayer
ea37df2d52
avutil/imgutils: Simplify pix_fmt validity check in av_image_get_linesize()
...
Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 23:23:59 +02:00
Michael Niedermayer
2cbadf51e8
Merge commit '3b73d5c942f44b37f0e44276ebcfd66c8b12c02d'
...
* commit '3b73d5c942f44b37f0e44276ebcfd66c8b12c02d':
fft-test: Use the float fabs() version
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 23:12:06 +02:00
Michael Niedermayer
fd04082af9
Merge commit '2d5176fad1a4556d209cbfb0f681712c7eada4fd'
...
* commit '2d5176fad1a4556d209cbfb0f681712c7eada4fd':
on2avc: Use the integer abs() version
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 23:04:30 +02:00
Michael Niedermayer
00ebf89dcd
Merge commit 'a7ac1a7b94447f33ae95be4d6d186e2775977f91'
...
* commit 'a7ac1a7b94447f33ae95be4d6d186e2775977f91':
flv: Name an enum and use its type
Conflicts:
libavformat/flvdec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 22:55:49 +02:00
Michael Niedermayer
e1ec9c7fb6
Merge commit '30dfc1dad4285e7362ce3f596d7c5d5d9b7fb33d'
...
* commit '30dfc1dad4285e7362ce3f596d7c5d5d9b7fb33d':
cws2fws: Close file handles on error
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 22:46:10 +02:00
Michael Niedermayer
6cfaa51acb
Merge commit 'a9b2a51178ea446909015f061ab5df65e3b66bf6'
...
* commit 'a9b2a51178ea446909015f061ab5df65e3b66bf6':
avconv_opt: Check localtime() return value
Conflicts:
ffmpeg_opt.c
See: 8e91d9652e
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 22:38:44 +02:00
Michael Niedermayer
449c74f629
Merge commit '8a78ae2d2101622fd244b99178d8bc61175c878e'
...
* commit '8a78ae2d2101622fd244b99178d8bc61175c878e':
segment: Check open_null_ctx() return value
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 22:10:47 +02:00
Michael Niedermayer
63b0356274
Merge commit 'b7a4127a45b780d76e6b09427a3d0197c4bc1cdb'
...
* commit 'b7a4127a45b780d76e6b09427a3d0197c4bc1cdb':
h264_qpel: Use the correct header
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 21:55:40 +02:00
Michael Niedermayer
b68b5ec513
Merge commit '5e87080f2c73186066df0b9c43877b4af0beef3a'
...
* commit '5e87080f2c73186066df0b9c43877b4af0beef3a':
h264_weight: Fix SSSE3 biweight code with weights of 128
Conflicts:
libavcodec/x86/h264_weight.asm
See: e100966575
See: fb2288834b
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 21:47:01 +02:00
Michael Niedermayer
85d0df0c30
Merge commit '64a2e844166d62093b45e680874eea8bd1facf5b'
...
* commit '64a2e844166d62093b45e680874eea8bd1facf5b':
eamad: Use the correct headers
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 21:42:50 +02:00
Michael Niedermayer
d52c5e9d75
Merge commit '8606e881b02bec2ac24943d22c8afe11d641fac8'
...
* commit '8606e881b02bec2ac24943d22c8afe11d641fac8':
mpeg12: Move the vlc bits to a stand alone file
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 21:34:22 +02:00
Michael Niedermayer
dbf172e6f4
Merge commit 'f1fa1eed2abdc8dfb0af318a43f5d293b81141bd'
...
* commit 'f1fa1eed2abdc8dfb0af318a43f5d293b81141bd':
mpegvideo: Expand macro
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 21:25:21 +02:00
Andreas Cadhalpun
1189af4292
h264: update avctx width/height/pix_fmt when returning frame
...
Inconsistencies between the dimensions/pixel format of avctx and the
frame can confuse API users.
For example this can crash the demuxing_decoding example.
Back up the previous values and restore them, when decoding the next
frame. This is necessary, because these can be different between the
returned frame and the last decoded frame.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
2015-06-12 21:22:00 +02:00
Michael Niedermayer
b5c71fba59
Merge commit 'e7af52a68dde9144b273a9598b60bf0f56e1323b'
...
* commit 'e7af52a68dde9144b273a9598b60bf0f56e1323b':
mpegvideo: rv10: Move function declaration to a separate header
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 21:05:57 +02:00
Michael Niedermayer
218f58a16a
Merge commit 'e3d0f49abb20a551bf6d885f75c354d6d0bbeb9d'
...
* commit 'e3d0f49abb20a551bf6d885f75c354d6d0bbeb9d':
mpegvideo: h263: Move all tables to a single file
Conflicts:
libavcodec/h263.h
libavcodec/h263data.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 20:57:37 +02:00
Michael Niedermayer
58f63670e1
Merge commit '8b5007a31b8d1ddbe3661bf45a732336450b7d25'
...
* commit '8b5007a31b8d1ddbe3661bf45a732336450b7d25':
mpegvideo: Move ER functions to a separate file
Conflicts:
libavcodec/mpegvideo.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 20:47:14 +02:00
Przemysław Sobala
c39637f36a
libavcodec/imgconvert.c: support left band while cropping
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 19:52:30 +02:00
Michael Niedermayer
d0061e77cd
avformat/mxfdec: Detect jpeg2000 through codec_ul too
...
Fixes Ticket2345
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 19:40:48 +02:00
Paul B Mahol
ce3bcb9479
doc/filters: add one more zoompan example
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-12 17:34:05 +00:00
wm4
7e240f9581
matroskadec: verify seekhead IDs
...
Some files have SeekHead elements with broken IDs. They mismatch with
the ID of the destination element. These files are written by
"IDMmkvlib0.1" (as identified by the MuxingApp and WritingApp elements),
and the SeekHead IDs are actually endian-swapped.
This confuses the SeekHead logic of the demuxer. It will read some
elements twice, because the SeekHead ID is used to identify and remember
already read elements. With the file at hand, the stream list was
duplicated by reading the Tracks element twice.
Fix this by rejecting invalid EBML IDs in SeekHead entries. (This fix is
relatively specific to the broken file at hand, and doesn't protect
against some other cases of broken SeekHead, such as valid but
mismatching target element IDs.)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 19:30:11 +02:00
Paul B Mahol
cfe8a89b00
avfilter/vf_zoompan: support planar rgb pixel formats
...
Signed-off-by: Paul B Mahol <onemda@gmail.com >
2015-06-12 17:15:20 +00:00
Vittorio Giovara
3b73d5c942
fft-test: Use the float fabs() version
...
Fixes clang warning "absolute value function 'fabsf' given an argument
of type 'double' but has parameter of type 'float' which may cause
truncation of value [-Wabsolute-value]".
2015-06-12 17:15:18 +01:00
Vittorio Giovara
2d5176fad1
on2avc: Use the integer abs() version
...
Fixes clang warning "floating point absolute value function 'fabsf'
when argument is of integer type [-Wabsolute-value]".
2015-06-12 17:02:49 +01:00
Vittorio Giovara
a7ac1a7b94
flv: Name an enum and use its type
2015-06-12 17:02:49 +01:00
Vittorio Giovara
30dfc1dad4
cws2fws: Close file handles on error
...
Reported-By: infer
2015-06-12 17:02:49 +01:00
Vittorio Giovara
a9b2a51178
avconv_opt: Check localtime() return value
...
Reported-By: infer
2015-06-12 17:02:48 +01:00
Vittorio Giovara
8a78ae2d21
segment: Check open_null_ctx() return value
...
Reported-By: infer
2015-06-12 17:02:48 +01:00
Vittorio Giovara
b7a4127a45
h264_qpel: Use the correct header
2015-06-12 17:02:48 +01:00
Michael Niedermayer
5e87080f2c
h264_weight: Fix SSSE3 biweight code with weights of 128
...
CC: libav-stable@libav.org
Sample-Id: test_bref.mp4
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2015-06-12 17:02:48 +01:00
Michael Niedermayer
971b377960
avcodec/jpeg2000dec: Reduce verbosity of get_plt()
...
The existence of such element does not represent an error
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 16:48:57 +02:00
Michael Niedermayer
5b2f9790e6
avcodec/jpeg2000dec: Fallback to yuv if no matching xyz format exists
...
Fixes Ticket4471
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 16:44:11 +02:00
Michael Niedermayer
eaa8685033
avcodec/jpeg2000dec: Do not abort if prc is outside limits
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 16:30:50 +02:00
Michael Niedermayer
8e91d9652e
ffmpeg_opt: Check for localtime() failure
...
Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 15:36:20 +02:00
Michael Niedermayer
80b5a1e2ee
Mark vectors as NAN instead of dereferencing NULL pointers on malloc failure
...
Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 15:06:32 +02:00
Michael Niedermayer
ae0148ff60
swscale: Assert that pixel format descriptor is not NULL
...
This may help static analyzers, the pixel format is checked
during initialization
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 14:47:37 +02:00
Michael Niedermayer
3dea13e710
avcodec/jpeg2000dec: Assert that pixel format descriptor is not NULL
...
We only look up pixel formats from a fixed list so none should ever
fail to be found
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 14:33:53 +02:00
Michael Niedermayer
d59a033a69
avformat/mpegts: recognizes and export private streams
...
Based on patch by Wolfgang Lorenz <wl-chmw@gmx.de >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 13:59:00 +02:00
Michael Niedermayer
04f0002291
configure: Disable VSX on unspecified / generic CPUs
...
Fixes fate tests on PPC64be
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 13:37:04 +02:00
Luca Barbato
64a2e84416
eamad: Use the correct headers
...
Untangle eamad from the mpeg12.h header and speed up rebuilding.
2015-06-12 12:29:46 +01:00
Luca Barbato
8606e881b0
mpeg12: Move the vlc bits to a stand alone file
2015-06-12 12:29:46 +01:00
Vittorio Giovara
f1fa1eed2a
mpegvideo: Expand macro
...
Having this macro in an header only facilitates the use of such header.
The code increase is minimal and files have one less dependency
on mpegvideo.h.
2015-06-12 12:29:46 +01:00
Vittorio Giovara
e7af52a68d
mpegvideo: rv10: Move function declaration to a separate header
2015-06-12 12:26:54 +01:00
Vittorio Giovara
e3d0f49abb
mpegvideo: h263: Move all tables to a single file
2015-06-12 12:26:04 +01:00
Vittorio Giovara
8b5007a31b
mpegvideo: Move ER functions to a separate file
2015-06-12 11:57:26 +01:00
Michael Niedermayer
e7adb02d3b
avcodec/jpeg2000dec: Do not hardcode tile part usage
...
Fixes part of Ticket 4605
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 04:51:37 +02:00
Michael Niedermayer
1b3fbe41c5
avcodec/jpeg2000dec: Do not print a warning for RLCP
...
It seems to be working now
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 04:51:30 +02:00
Michael Niedermayer
4af9eb4f75
avcodec/jpeg2000dec: Remove unused variable and argument
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 03:33:31 +02:00
Michael Niedermayer
dc73c7adc0
avcodec/jpeg2000dec: Fix Selective arithmetic coding bypass and Multiple codeword segments
...
These 2 are highly related so they are in the same commit
Fixes part of Ticket4605
Fixes p0_04.j2k
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 03:12:54 +02:00
Michael Niedermayer
eea92133a1
avcodec/mqcdec: Support raw bypass and non reseting init
...
Some broken code that used the old mqc is removed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 03:02:09 +02:00
Michael Niedermayer
b395fd3de7
avcodec/jpeg2000dec: add some sanity checking on newpasses
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 02:02:38 +02:00
Michael Niedermayer
5ccca4eb8e
avcodec/jpeg2000dec: Add some additional checking on lengthinc
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-12 01:13:55 +02:00
Michael Niedermayer
2f1dd4a3d1
avcodec/jpeg2000dec: Print warning for "Selective arithmetic coding bypass"
...
This is implemented but i suspect does not work correctly as no file using this
seems to decode correctly.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 22:59:07 +02:00
Michael Niedermayer
9c8939216b
avcodec/jpeg2000dec: Implement progression order RLCP
...
This works with one of 2 RLCP samples i have, the other appears to also
use selective arithemtic coding bypass which may or may not be the reason why it does
not work
Sample: p0_16.j2k
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 21:38:10 +02:00
Shivraj Patil
fb92f3ecb4
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for AVC idct functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for AVC idct functions in new file h264idct_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 17:10:45 +02:00
Shivraj Patil
1d70b6fe1d
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for AVC intra prediction functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for AVC intra prediction functions in new file h264pred_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 17:10:41 +02:00
Michael Niedermayer
daf1158d77
avutil/softfloat: Move av_sf2double() to header
...
It was not intended to be a static private function
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 16:16:38 +02:00
Michael Niedermayer
54f685a0ee
avutil/softfloat: properly separate testcode
...
This matches how other self tests are implemented
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 16:12:24 +02:00
Michael Niedermayer
4e640f0560
avformat/avio: move short seek threshold to the context
...
This allows us to adjust it internally.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 13:42:06 +02:00
Michael Niedermayer
70af8a5efb
avformat/aiffdec: avoid double and ldexp()
...
There is no support for non integer sample rates, using doubles/floats currently could
only lead to rounding differences between platforms
Previous version Reviewed-by: Mark Harris <mark.hsj@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 13:09:46 +02:00
Shivraj Patil
e4fb8816f9
avcodec/mips: Add 'const' to static arrays in HEVC MSA code
...
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 12:24:48 +02:00
Shivraj Patil
b87dc70c65
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for AVC chroma mc functions
...
s patch adds MSA (MIPS-SIMD-Arch) optimizations for AVC chroma mc functions in new file h264chroma_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 12:24:02 +02:00
James Zern
fd004e10d3
libvpxenc: add overshoot-pct option
...
balances the presence of undershoot-pct
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Zern <jzern@google.com >
2015-06-10 21:01:32 -07:00
James Zern
2c70436e69
libvpxenc: add undershoot-pct option
...
replaces deprecated rc_buffer_aggressivity
Reviewed-by: Michael Niedermayer <michaelni@gmx.at >
Signed-off-by: James Zern <jzern@google.com >
2015-06-10 21:01:20 -07:00
Michael Niedermayer
c2163f7cc7
avcodec/pcm-dvd: Fix debug == FF_DEBUG_PICT_INFO
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 04:53:37 +02:00
Deliang Fu
6e1f8780c8
avformat: Fix bug in parse_rps for HEVC.
...
Make the logic in libavformat/hevc.c parse_rps align with libavcodec/hevc_ps.c ff_hevc_decode_short_term_rps
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 02:31:53 +02:00
Michael Niedermayer
8ddc415515
avdevice/openal-dec: Make al_format_info const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 00:48:41 +02:00
Michael Niedermayer
9e40bd50e1
avformat/movenc: Make static packed_size, const static
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 00:48:41 +02:00
Michael Niedermayer
261b715593
avcodec/mpeg4videodec: Mark static table as const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-11 00:48:41 +02:00
Michael Niedermayer
c465254fbf
avformat/mpegts: Do not ignore registration descriptors when probing is enabled
...
This is required for the (not yet in git) private stream detection/export,
no other testcase known
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 23:50:46 +02:00
Lou Logan
dc52e6200d
doc/ffmpeg: remove tips
...
Ancient and misleading.
Signed-off-by: Lou Logan <lou@lrcd.com >
2015-06-10 13:08:48 -08:00
Michael Niedermayer
11f86ec204
Merge commit 'c0e6b8cab874db97b6818007bc86507c8d213083'
...
* commit 'c0e6b8cab874db97b6818007bc86507c8d213083':
mpegvideo: Mark one function as static
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 21:07:59 +02:00
Michael Niedermayer
21d8e2c0b5
Merge commit 'd1dd0d404c085f4fce7b8358b4aea677761c5d88'
...
* commit 'd1dd0d404c085f4fce7b8358b4aea677761c5d88':
mpegvideo: Move block permutation function where is used
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 20:58:32 +02:00
Michael Niedermayer
d784d6b7ed
Merge commit 'c6aa0554b0c3e31fec4580b68ea85b66966cd381'
...
* commit 'c6aa0554b0c3e31fec4580b68ea85b66966cd381':
mpegvideo: Drop release_unused_pictures() function
Conflicts:
libavcodec/mpegvideo.c
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 20:50:36 +02:00
Michael Niedermayer
88679aeb08
Merge commit '7061bf0925a7d6c5899bbe710b2b8cdae9005274'
...
* commit '7061bf0925a7d6c5899bbe710b2b8cdae9005274':
mpegvideo: Move Picture-related functions to a separate file
Conflicts:
libavcodec/mpegvideo.c
libavcodec/mpegvideo.h
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 20:41:36 +02:00
Michael Niedermayer
049161fb7c
Merge commit '529c05698e88b057f0bea61e0d85f2b42925b5ea'
...
* commit '529c05698e88b057f0bea61e0d85f2b42925b5ea':
movenc: fixes a questionable valgrind uninitialized value warning
See: 3c5c6870a7
Merged-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 20:19:19 +02:00
Stephan Holljes
de3a7ef204
lavf/http: Correctly terminate session with HTTP POST client.
...
Send a footer to correctly close client sockets.
This fixes network errors in client applications.
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com >
Reviewed-by: Nicolas George <george@nsup.org >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 18:17:28 +02:00
Michael Niedermayer
63276fa9c1
avcodec/mips: remove ;;
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 16:23:22 +02:00
Igor Derzhavin
203f9c8ff0
libavformat/flvdec.c: don't build index_entries for input stream if AVIOContext is not seekable
...
Signed-off-by: Igor Derzhavin <igor.derzhavin@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 16:22:11 +02:00
Vittorio Giovara
c0e6b8cab8
mpegvideo: Mark one function as static
2015-06-10 14:06:44 +01:00
Vittorio Giovara
d1dd0d404c
mpegvideo: Move block permutation function where is used
...
Mark it as static.
2015-06-10 14:06:23 +01:00
Vittorio Giovara
c6aa0554b0
mpegvideo: Drop release_unused_pictures() function
...
It is only used in one place, and it is small enough that it might be
called directly.
2015-06-10 14:05:53 +01:00
Vittorio Giovara
7061bf0925
mpegvideo: Move Picture-related functions to a separate file
2015-06-10 14:05:32 +01:00
Janne Grunau
529c05698e
movenc: fixes a questionable valgrind uninitialized value warning
...
display_matrix_size is only initialized when av_stream_get_side_data()
returns a side data pointer. The code is safe since the only effect this
has is setting the display_matrix pointer to NULL which it was already
anyway.
2015-06-10 14:32:11 +02:00
Shivraj Patil
d6d98237ed
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC intra prediction functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for HEVC intra predition functions in new file hevcpred_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 13:53:03 +02:00
Shivraj Patil
271195f85b
avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC loop filter and sao functions
...
This patch adds MSA (MIPS-SIMD-Arch) optimizations for HEVC loop filter and sao functions in new file hevc_lpf_sao_msa.c
Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h
In this patch, in comparision with previous patch, duplicated c functions are removed.
Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 13:14:50 +02:00
Andreas Cadhalpun
05c57ba2f4
takdec: ensure chan2 is a valid channel index
...
If chan2 is not smaller than the number of channels, it can cause
segmentation faults due to dereferencing a NULL pointer.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 12:21:04 +02:00
Michael Niedermayer
aef0e0f009
avcodec/h264_slice: Use AVFrame diemensions for grayscale handling
...
The AVFrame values are closer to the AVFrame bitmap changed instead of
the AVCodecContext values, so this should be more robust
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 11:37:48 +02:00
Michael Niedermayer
b58a3c8975
avcodec/jpeg2000dec: Print the correct variable in the component error message
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 04:50:40 +02:00
Michael Niedermayer
81471d8246
avcodec/jpeg2000dec: increase tile_parts to 6
...
Fixes Ticket4602
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 04:50:14 +02:00
Michael Niedermayer
213f2da46a
avcodec/jpeg2000dec: Fix shift for RGB(A)48/64
...
Found-by: carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 04:19:38 +02:00
Michael Niedermayer
913685f552
avdevice/lavfi: do not rescale AV_NOPTS_VALUE in lavfi_read_packet()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-10 00:56:02 +02:00