Michael Niedermayer
59c915a403
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>
9 years ago
Michael Niedermayer
26757b0279
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>
9 years ago
Michael Niedermayer
56ec8f85e2
avcodec/ac3enc: Remove duplicate #include
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
590863876d
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>
9 years ago
Michael Niedermayer
93ac72a98d
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>
9 years ago
Michael Niedermayer
030c7f0309
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>
9 years ago
Clément Bœsch
6d32628bf3
lavc/ccaption_dec: improve default style
...
Use monospaced font, and a black box outline.
9 years ago
Michael Niedermayer
d86d7b2486
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>
9 years ago
Carl Eugen Hoyos
f587ed0cbb
lavc/x264: Add compatibility values for coder options.
...
Fixes ticket #5142 .
9 years ago
Clément Bœsch
a43deea861
lavc/ccaption_dec: fix ASS tags
9 years ago
Michael Niedermayer
e273dade78
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>
9 years ago
Michael Niedermayer
42c54d4cc3
avcodec/codec_desc: Add ff_aac_profiles to aac_latm
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Sasi Inguva
cbcc88c039
libvpx: Support setting color range for vp9.
...
Pass through color range to vp9 encoder. Parse color range in libvpxdec.c.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Sasi Inguva <isasi@google.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Clément Bœsch
0948e0f553
lavc/ccaption_dec: simplify rollup cases
9 years ago
Clément Bœsch
22765140fa
lavc/ccaption_dec: check for bprint completeness outside the loop
9 years ago
Clément Bœsch
31bff21d2c
lavc/ccaption_dec: mark row and font as const in capture_screen()
9 years ago
Clément Bœsch
d587fbb676
lavc/ccaption_dec: fix mixed declarations and code warning
9 years ago
Clément Bœsch
5ae07914d0
lavc/ccaption_dec: check for bprint completeness only at the end
9 years ago
Aman Gupta
b7e64be8fb
lavc/ccaption_dec: implement font styles
9 years ago
Aman Gupta
086093c77c
lavc/ccaption_dec: simplify by incrementing cursor_column inside write_char()
9 years ago
Aman Gupta
811ce8f9c5
lavc/ccaption_dec: simplify by passing screen into write_char()
9 years ago
Aman Gupta
080de371d8
lavc/ccaption_dec: extract capture_screen() for future use
...
unlike reap_screen(), capture_screen() can be used to populate buffer
without touching the timestamps. this is useful for upcoming commits
which implement a real time caption stream.
9 years ago
Aman Gupta
e521a32af2
lavc/ccaption_dec: clear buffer before populating with screen contents
9 years ago
Aman Gupta
7def844be8
lavc/ccaption_dec: centralize buffer_changed=1 into reap_screen
9 years ago
Aman Gupta
c75b869516
lavc/ccaption_dec: rename screen_changed to buffer_changed
9 years ago
Aman Gupta
8fd7f03c56
lavc/ccaption_dec: extract ass time base into constant
9 years ago
Aman Gupta
6049b15c0a
lavc/ccaption_dec: combine ROLLUP modes as they are identical
9 years ago
Aman Gupta
2693275c02
Revert "lavc/ccaption_dec: reap_screen() is responsible for clearing output buffer and signaling screen_changed"
...
This reverts commit 53ee84f811
.
9 years ago
Aman Gupta
578b911b5e
Revert "lavc/ccaption_dec: implement "erase non displayed memory""
...
This reverts commit 26abdd61a3
.
9 years ago
Aman Gupta
23a50c8ab9
Revert "lavc/ccaption_dec: reap_screen is not necessary when clearing screen or buffer"
...
This reverts commit fe225b113b
.
9 years ago
Carl Eugen Hoyos
836c793514
lavc/libvpxenc: Improve documentation for option cpu-used.
...
Fixes ticket #5140 .
Reviewed-by: James Zern
9 years ago
Aman Gupta
fe225b113b
lavc/ccaption_dec: reap_screen is not necessary when clearing screen or buffer
9 years ago
Aman Gupta
26abdd61a3
lavc/ccaption_dec: implement "erase non displayed memory"
9 years ago
Aman Gupta
53ee84f811
lavc/ccaption_dec: reap_screen() is responsible for clearing output buffer and signaling screen_changed
...
moves the screen_changed bit and the bprint_clear into reap_screen() so
the logic is centralized and callers do not need to touch the bit or the
buffer before calling reap_screen()
9 years ago
Aman Gupta
5695c85332
lavc/ccaption_dec: remove unused return value from internal functions
9 years ago
Aman Gupta
b261749f70
lavc/ccaption_dec: clean up whitespace
9 years ago
James Almer
28d5a3a74a
lavu: rename and move ff_parity to av_parity
...
av_popcount is not defined in intmath.h.
Reviewed-by: ubitux
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Clément Bœsch
a1136ca973
lavc/g729dec: use ff_parity()
9 years ago
Clément Bœsch
00e96613f3
lavc/ccaption_dec: use ff_parity()
9 years ago
Clément Bœsch
d64fe951c2
lavc/ccaption_dec: fix always true condition
...
No idea why this wasn't ever detected by a static analyzer.
9 years ago
Michael Niedermayer
0869ff7e9d
avcodec/utils: Check bits_per_raw_sample on video encoder open
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
13f266b50c
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>
9 years ago
Aman Gupta
3ec5d8fe0f
libavcodec/ccaption_dec: rewrite packet handler as case statement; remove COR3 macro
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Aman Gupta
55ca79f526
libavcodec/ccaption_dec: clean up and standardize white space
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Derek Buitenhuis
72673ad7ea
avcodec: Remove libstagefright
...
It serves absolutely no purpose other than to confuse potentional
Android developers about how to use hardware acceleration properly
on the the platform. The stagefright "API" is not public, and the
MediaCodec API is the proper way to do this.
Furthermore, stagefright support in avcodec needs a series of
magic incantations and version-specific stuff, such that
using it actually provides downsides compared just using the actual
Android frameworks properly, in that it is a lot more work and confusion
to get it even running. It also leads to a lot of misinformation, like
these sorts of comments (in [1]) that are absolutely incorrect.
[1] http://stackoverflow.com/a/29362353/3115956
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Andreas Cadhalpun
da3c3c446c
avpacket: fix size check in packet_alloc
...
The previous check only caught sizes from -AV_INPUT_BUFFER_PADDING_SIZE
to -1.
This fixes ubsan runtime error: signed integer overflow: 2147483647 + 32
cannot be represented in type 'int'
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
9 years ago
Andreas Cadhalpun
fa74cdc60d
parser: add av_assert1 to make sure the codec matches
...
Otherwise this can have some surprising effects (crashes), so let's
better not allow it.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
9 years ago
Michael Niedermayer
5b4da8a38a
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>
9 years ago
Aman Gupta
e7271e6d07
libavcodec/ccaption_dec: remove unnecessary include
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
68eb20801d
avcodec/dxv: Check idx in dxv_decompress_dxt5()
...
Fixes potential out of array read
No testcase available
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago