Joakim Plate
8449cebc90
rmdec: Check return value of more avio_seek calls
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 7e4111cfe2
)
2011-09-21 18:03:16 +02:00
Joakim Plate
4a721b18ed
avidec: Check return value of more avio_seek calls
...
The move of avio_seek in avi_read_seek is to avoiding modifying
state if the seek would fail.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit f9e083a156
)
2011-09-21 18:03:11 +02:00
Joakim Plate
f0869d3721
asf: Check return value of more avio_seek calls
...
This reduces problems when underlying protocol is not
seekable even if marked as such or if the file has been
cut short.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ac1d489320
)
2011-09-21 18:03:05 +02:00
Laurent Aimar
be82df9e12
Fix writes out of bounds in the ogg demuxer.
...
Between ogg_save() and ogg_restore() calls, the number of streams
could have been reduced.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit bc851a2946
)
2011-09-21 18:03:01 +02:00
Luca Barbato
b70a37f854
doc: explain __STDC_CONSTANT_MACROS in C++
...
In order to build C++ programs using libav you need
-D__STDC_CONSTANT_MACROS appened to the CXXFLAGS.
(cherry picked from commit d162994a81
)
2011-09-21 18:02:54 +02:00
Joakim Plate
812a4a5813
gitignore: add files to git ignore generated on a win32 build
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 5a6f4a1302
)
2011-09-21 18:02:46 +02:00
Laurent Aimar
c9316b7c6d
Fixed invalid read access on extra data in cinepak decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit dc255275f6
)
2011-09-21 18:02:40 +02:00
Laurent Aimar
8511c141e0
Fixed segfault on corrupted smacker streams in the demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d0121e8d96
)
2011-09-21 18:02:34 +02:00
Laurent Aimar
2bf9a09a2c
Fixed segfaults on corruped smacker streams in the decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d07ac1853d
)
2011-09-21 18:02:29 +02:00
Laurent Aimar
4601765ee8
Fixed segfault on memory allocation failure in ape demuxer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 1632a576e6
)
2011-09-21 18:02:25 +02:00
Michael Niedermayer
54544100a3
h264: prevent an out of array read in decode_nal_units()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ea0ac11e52
)
2011-09-21 18:02:18 +02:00
Michael Niedermayer
97437dada6
h264dec: Prevent CABAC and CAVLC bitsteram overreading
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 23f5cff92c
)
2011-09-21 18:02:13 +02:00
Art Clarke
c8736de331
libspeex encoder wraper
...
taken from svn head of xuggle
(cherry picked from commit a52cdcd296
)
2011-09-21 18:01:25 +02:00
Joakim Plate
92f1b5df32
dvbsubdec: don't hardcode subtitle colors count in dvbsubdec to 16
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4a3294ef00
)
2011-09-21 18:01:20 +02:00
Laurent Aimar
82e4fd193f
Fixed segfault with wavpack decoder on corrupted decorrelation terms sub-blocks.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 8bfea4ab4e
)
2011-09-21 18:01:13 +02:00
Alex Converse
3a0649ddeb
cljr: init_get_bits size in bits instead of bytes
...
(cherry picked from commit 0c1f5b93d9
)
2011-09-21 18:01:09 +02:00
Alex Converse
9f05400ea8
indeo2: fail if input buffer too small
...
(cherry picked from commit b7ce4f1d1c
)
2011-09-21 18:01:02 +02:00
Alex Converse
09cfd6f597
indeo2: init_get_bits size in bits instead of bytes
...
(cherry picked from commit 68ca330cbd
)
2011-09-21 18:00:54 +02:00
Michael Niedermayer
b2af83a9ed
cabac test: Change input to test, so a wider range of states is tested.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 1eb805ed70
)
2011-09-21 18:00:40 +02:00
Michael Niedermayer
f38b2a6be8
cabac test: match encode and decode side
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 830d7d5c4f
)
2011-09-21 18:00:36 +02:00
Michael Niedermayer
db93a5a0c8
cabac: fix cabac encoder
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 89653ea728
)
2011-09-21 18:00:18 +02:00
Laurent Aimar
b5fe6bee01
Fixed deference of NULL pointer in motionpixels decoder.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 824f98f442
)
2011-09-21 18:00:10 +02:00
chinshou
57571f348e
avisynth: Fix upside down bug
...
(cherry picked from commit b10ba1175d
)
2011-09-21 18:00:04 +02:00
chinshou
ab2ea6415b
avisynth: Remove wrong pts calculation.
...
Fixes Ticket428
(cherry picked from commit 4f123a7d7c
)
2011-09-21 17:59:57 +02:00
Laurent Aimar
7181adab80
Fixed size given to init_get_bits().
...
init_get_bits() takes a number of bits and not a number of bytes as
its size argument.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit e5e0580b93
)
2011-09-21 17:59:48 +02:00
Laurent Aimar
bac822025e
Fixed size given to init_get_bits() in ffv1 decoder.
...
init_get_bits() takes a number of bits and not a number of bytes as
its size argument.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8362a0ffed
)
2011-09-21 17:59:43 +02:00
Alex Converse
8a8aafd2b9
wavpack: Check error codes rather than working around error conditions.
...
(cherry picked from commit dba2b63a98
)
2011-09-21 17:59:36 +02:00
Michael Niedermayer
a13ef61051
rc: finetune convergence failure fix
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 73e0ec2ff4
)
2011-09-21 17:59:30 +02:00
Michael Niedermayer
4fbc35cd53
rc: fix convergence failure
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ed14517c23
)
2011-09-21 17:59:25 +02:00
Panagiotis H.M. Issaris
1ec29b2da5
Fix documentation for "-debug" commandline argument
...
(cherry picked from commit 180e7829428e26413916f0cbc2ad85eeb1fb877e)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit bcef876f16
)
2011-09-21 17:59:19 +02:00
Diego Biurrun
5cc5152e80
Employ FF_ARRAY_ELEMS instead of manually calculating array length.
...
(cherry picked from commit 6376362d15
)
2011-09-21 17:57:56 +02:00
Laurent Aimar
558cf502ac
Fixed invalid writes in wavpack decoder on corrupted bitstreams.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 0aedab0340
)
2011-09-21 17:57:33 +02:00
Chris Rankin
b0da6a744a
qcelpdec: fix the return value of qcelp_decode_frame().
...
(cherry picked from commit 04c13dca88
)
2011-09-21 17:57:01 +02:00
Michael Niedermayer
d99613bad6
jpeglsdec: fix infinite loop
...
Fixes Ticket331
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit bd358e128f
)
2011-09-21 17:57:01 +02:00
Asad Mehmood
64556c200e
flvdec: Remove AVFMTCTX_NOHEADER if both flags and metadata claim 1 stream
...
If there is only 1 stream in an flv avformat_find_stream_info will continually
read until probesize is reached. This should stop it reading if the metadata
also claims there to be 1 stream.
(cherry picked from commit bcc531f04a
)
2011-09-21 17:57:01 +02:00
Kostya Shishkov
c026f336b9
wavpack: fix wrong return value in wavpack_decode_block()
...
This function should return number of samples decoded, not number of bytes
decoded.
Spotted by Uoti Urpala.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit bcd4aa8bec
)
2011-09-21 17:56:15 +02:00
Reimar Döffinger
5c2d684986
Check extradata size on resolution change.
...
Ignore resolution change if resolution not defined in extradata.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
(cherry picked from commit 09c5f990bc
)
2011-09-21 17:56:15 +02:00
Stefan Fritsch
77dafced71
http: Fix decetion of range support in HTTP servers
...
currently libavformat only allows seeking if a request with "Range:
0-" results in a 206 reply from the HTTP server which includes a
Content-Range header. But according to RFC 2616, the server may also
reply with a normal 200 reply (which is more efficient for a request
for the whole file). In fact Apache HTTPD 2.2.20 has changed the
behaviour in this way and it looks like this change will be kept in
future versions. The fix for libavformat is easy: Also look at the
Accept-Ranges header.
(cherry picked from commit 31dfc49598
)
2011-09-21 17:56:15 +02:00
Reimar Döffinger
9c96b1efb1
Do not free BITMAPINFOHEADER before we are done using it.
...
Fixes trac ticket #396 .
Completely untested.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
(cherry picked from commit 177aec1257
)
2011-09-21 17:56:15 +02:00
Gavin Kinsey
30442fa217
jpegdec: set color_range
...
(cherry picked from commit 2f870e262e
)
2011-09-21 17:56:15 +02:00
Michael Niedermayer
e7d10f5a90
mpeg4: fix typo in mpeg4_encode_gop_header()
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit f5bda9fcbb
)
2011-09-21 17:56:15 +02:00
Michael Niedermayer
ca5dfd1550
h264: clean all non null elements of delayed_pic[]
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 66ce282df5
)
2011-09-21 17:56:14 +02:00
Michael Niedermayer
1979a9b4f2
h264: change MAX_DELAYED_PIC_COUNT check to av_assert0
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit b955ab2f49
)
2011-09-21 17:56:14 +02:00
Edgar Hucek
3af3a871af
Fix VA-API decoding artefacts.
...
Fixes ticket #457 .
(cherry picked from commit 3fec40b601
)
2011-09-11 12:56:54 +02:00
Alex Converse
48ba48fb13
wavpack: Check error codes rather than working around error conditions.
...
(cherry picked from commit dba2b63a98
)
2011-09-10 05:38:02 +02:00
Laurent Aimar
e1baba3ddb
Fixed invalid access in wavpack decoder on corrupted bitstream.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 55354b7de2
)
2011-09-08 23:48:42 +02:00
Laurent Aimar
399f7e0e75
Fixed invalid writes in wavpack decoder on corrupted bitstreams.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 0aedab0340
)
2011-09-08 23:48:42 +02:00
Laurent Aimar
90edd5df3d
Fixed invalid access in wavpack decoder on corrupted extra bits sub-blocks.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit beefafda63
)
2011-09-08 23:48:42 +02:00
Gavin Kinsey
e6df35b3be
Prevent double free of side_data when AVFMT_FLAG_KEEP_SIDE_DATA flag is set
...
(cherry picked from commit d64066f6e8
)
2011-09-08 23:48:08 +02:00
Chris Rankin
b2c9e9be87
mp3dec: Dont spam the user on multiple mp3 frames.
...
(cherry picked from commit 54e1eaef67
)
2011-09-08 21:14:10 +02:00