Andreas Cadhalpun
63c9b30f98
qtpalette: make the color_* variables unsigned again
...
This fixes segmentation faults due to out of bounds writes, when
color_start is interpreted as negative number.
This regression was introduced in commit 57631f.
Reviewed-by: Mats Peterson <matsp888@yahoo.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
9 years ago
Clément Bœsch
7570c9e04f
swfdec: support compressed swf
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Alexandra Hájková
34d45b3616
asfdec: Fix typo in comment
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Luca Barbato
40d43d25e7
APIchanges: Add missing av_pix_fmt_get_chroma_sub_sample entry
9 years ago
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
c71999ef97
avformat/dfa: Fix packet leak on error
...
Fixes: 07fa81f300736485e585b63e7b1cd155/signal_sigabrt_7ffff6ae7cb7_16_94ee815791a1357826524072db5bc2dc.dfa
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Mats Peterson
71f73ee325
lavf/matroskadec: Normalize noncompliant A_QUICKTIME/V_QUICKTIME private data
...
This patch adds a new static function get_qt_codec() that takes care of
the initial retrieval of the fourcc and codec ID for A_QUICKTIME and
V_QUICKTIME. It also normalizes noncompliant private data found in some
older files that incorrectly starts with the fourcc by expanding/shifting
the data by 4 bytes, and storing the data size at the start. This is
necessary in order for the rest of the code in the A_QUICKTIME and
V_QUICKTIME blocks (and most likely other code as well) to correctly
parse the private data.
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
79061bcec1
fate: fix sub-cc font
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
Marton Balint
fdb2d4b108
lavf/concatdec: do not access packet if av_read_frame returned error
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Marton Balint <cus@passwd.hu>
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
Timothy Gu
53d6bf6627
avf_showspectrum: Silence "deprecated pixel format" warning
9 years ago
Paul B Mahol
cbad37e5bf
avfilter/avf_showspectrum: set color range to frame
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
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
Michael Niedermayer
2039b3e751
avformat: Add integer fps from 31 to 60 to get_std_framerate()
...
Fixes Ticket 5106
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Rostislav Pehlivanov
ba4c2917eb
doc/encoders: fix typo in AAC encoder documentation
...
Signed-off-by: Rostislav Pehlivanov <atomnuker@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
Michael Niedermayer
6e249466cc
avformat/movenc: Check that pkt duration is within 32bit range
...
Durations outside are not supported
Fixes Ticket5114
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Ricardo Constantino
be0f005da6
configure: Use libgcrypt-config's cflags
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
5c8467a07c
avformat/ivfenc: fix division by zero
...
Fixes Ticket 5115
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Martin Storsjö
73c8c0341c
arm: Fix vfp dead code elimination with have_vfp_vm
...
This fixes builds with --disable-vfp.
Checking for the armv6 cpu flag is incorrect, since vfpv2 isn't
armv6 specific.
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Aman Gupta
fe225b113b
lavc/ccaption_dec: reap_screen is not necessary when clearing screen or buffer
9 years ago
Ricardo Constantino
e990d746d0
configure: Use libgcrypt-config if available
...
Signed-off-by: Ricardo Constantino <wiiaboo@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Aman Gupta
26abdd61a3
lavc/ccaption_dec: implement "erase non displayed memory"
9 years ago