Michael Niedermayer
877f6eb5fb
tta: Fix returned error code at EOF
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4925b6e784
tta: fix off be 1 error in the end detection.
...
Fixes use of uninitialized values.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
4dfb74cd4f
Flush decoders correctly in avformat_find_stream_info().
...
The decoders should not only be flushed on EOF or error, but also when
e.g. probe size was reached.
It is best to just always flush by default and only disable it
explicitly when we know that we have everything we need.
Fixes trac ticket #879 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Janne Grunau
f5be84cfbc
ipmovie: do not read audio packets before the codec is known
...
Prevents a division by zero.
13 years ago
Martin Storsjö
acb074301c
avio: Only do implicit network initialization for network protocols
...
The implicit network initialization is set to be removed in the
future, but is kept for compatibility. By not doing the implicit
initialization for non-network protocols, we avoid the warning
about avformat_network_init() not being called for these, where
it really doesn't make much sense.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
32b83aeec1
avio: Add an URLProtocol flag for indicating that a protocol uses network
...
This definition is in two files, since the definitions will move
to the private header at the next bump.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Chris Evans
faaec4676c
matroskadec: Fix a bug where a pointer was cached to an array that might later move due to a realloc()
...
Fixes bug #190
Chromium bug #100492
related to CVE-2011-3893
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
13 years ago
Clément Bœsch
35da85562d
mov: support timecode extraction.
13 years ago
Clément Bœsch
adc278788b
mov: annotate read values in tmcd track.
13 years ago
Alex Converse
4274e481c0
mov: Support MOV_CH_LAYOUT_USE_DESCRIPTIONS for labeled descriptions.
13 years ago
Anton Khirnov
f9b9dd8740
lavf: cosmetics, reformat av_read_frame().
13 years ago
Anton Khirnov
6450599e22
lavf: refactor av_read_frame() to make it easier to understand.
13 years ago
Michael Niedermayer
c4eec85a1f
Revert "rmdec: Avoid allocating huge packets"
...
This reverts commit 66f71f3b5e
.
This causes regressions with RDT.
13 years ago
Michael Niedermayer
ad8e3304f7
lavf: use avg_frame_rate and packet number to exit find_stream_info
...
qatar does this too but clobbers the AVPacket.duration by approximate
values.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1171d938af
lavf: revert commit bb99ae3ae9
...
Author: Michael Niedermayer <michaelni@gmx.at>
Date: Thu Nov 3 22:38:10 2011 +0100
lavf: fix null pointer dereference in rdt
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This is no longer needed and causes various problems with RTSP
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Shitiz Garg
feb15cee5e
mtv: Make sure audio_subsegments is not 0
...
audio_subsegments would be 0 and cause floating point exceptions
Fixes bugzilla #144
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Chris Evans
f35e037c93
mkv: Fix a bug where a pointer was cached to an array that might later move due to
...
a realloc()
BUG=100492
Review URL: http://codereview.chromium.org/8366004
Fixes: 1 of 2 for CVE-2011-3893
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jean First
2df73eefb4
flvdec: Fix compiler warning for uninitialized variables
...
These can't be used uninitialized in practice, but the
compiler doesn't realize it.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Jean First
4be386b318
rtsp: Fix compiler warning for uninitialized variable
...
This one won't ever be used uninitialized in practice, but
the compiler doesn't realize it.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Andrew Ryan
4452d58c72
Insert missing newline at end of error log message in mov demuxer.
13 years ago
Carl Eugen Hoyos
17edc370b2
yuv4 libquicktime packed 4:2:0 encoder and decoder.
...
Reviewed-by: Derek Buitenhuis
Reviewed-by: Paul B Mahol
13 years ago
Carl Eugen Hoyos
2754514787
v308 Quicktim Uncompressed 4:4:4 encoder and decoder.
...
Reviewed-by: Derek Buitenhuis
Reviewed-by: Paul B Mahol
13 years ago
Carl Eugen Hoyos
64e4f4836a
Add decoder for Avid 1:1 10-bit RGB Packer (AVrp).
...
Fixes ticket #525 .
Reviewed-by: Paul B Mahol
13 years ago
Janne Grunau
a2d1d21629
avio: exit early in fill_buffer without read_packet
...
Fixes an invalid free() with ass in avi. The sample in bug 98 passes
parts of AVPacket.data as buffer for the AVIOContext. Since the packet
is quite large fill_buffer tries to reallocate the buffer before doing
nothing. Fixes bug 98.
13 years ago
Michael Niedermayer
6072a19b4f
lavf: Fix try_decode_frame() so it doesnt loop infinitely.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f37174bc19
electronicarts: Pass error through ea_read_header().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Oana Stratulat
0d3a51e5d2
electronicarts: Fix division by zero. Fixes Ticket #793
...
Signed-off-by: Oana Stratulat <oanaandreeastratulat@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
779ef255e6
adx: add an adx muxer
13 years ago
Justin Ruggles
99baf2c7d0
adx: add AVFMT_GENERIC_INDEX to demuxer flags.
...
fixes seeking
13 years ago
Jean First
efaf448888
rtsp: Fix compiler warning for uninitialized variable.
...
Reviewed-by: Martin Storsjö
13 years ago
Anton Khirnov
212fd3a1f1
lavf: flush decoders in avformat_find_stream_info().
...
This means that avformat_find_stream_info() now works properly with
multiple threads, so there's no need to force thread count to 1.
13 years ago
Jean First
f2eb2e5c4f
wtvdec: use intfloat.h instead of intfloat_readwrite.h
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
8fd35b1aac
Fix a bunch of typos.
13 years ago
Diego Biurrun
44b0edda3f
Drop some pointless void* return value casts from av_malloc() invocations.
13 years ago
Clément Bœsch
e1a8164d62
mp3enc: fix playback with mp3 encoded files on some devices.
...
This partially reverts 1fea432b; header variable needs to keep its value
in case it triggers "if (needed <= c.frame_size)".
13 years ago
Jean First
e2c1d3ec41
flvdec: use av_uninit to silence compiler warnings
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
dfa77dead2
y41p encoder and decoder
...
y41p is a packed 12-bit 4:1:1 YUV format used by Brooktree.
Fixes issue 1123 / ticket #102 .
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Janne Grunau
af9240cd3c
mpegenc: simplify muxrate calculation
...
The fate-h264-bsf-mp4toannexb failures were caused by an integer
overflow of the unneeded multiplication.
Inspired by patch by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
c914038d38
rawdec: Set start_time to 0 for raw audio files.
...
None of the raw audio files have timestamps, thus setting
start_time to 0 should be reasonable.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Carl Eugen Hoyos
835af79b05
Detect 'yuv2' as rawvideo also in avi.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Jean First
6bd8d61378
mov: av_dlog use PRId64 instead of %ld
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jean First
d92d2af81f
mxfdec: change av_log formatting %lx to PRIx64 and %li to PRIi64
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
490c97bdf5
mpegpsenc: Fix integer overflow of the muxrate calculation.
...
this should fix the failure of h264-bsf-mp4toannexb on freebsd/openbsd
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
2cba62bd84
Do not map asf metadata key WM/Track to track.
...
WM/Track is 0-based (and deprecated in favour of WM/TrackNumber),
track is 1-based.
Fixes ticket #825 .
13 years ago
Janne Grunau
e4e30256f8
threads: default to automatic thread count detection
13 years ago
Michael Niedermayer
bd553d5ea9
mxg: fix compiler warning for uninitialized variables
...
Based on work by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jean First
acc88f07d4
id3v2: fix compiler warning for uninitialized variables
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e6362f3a3c
lavf: ffio_limit(), treat avio_size()==0 as error.
...
This works around issues arising from inputs that claim to have a
filesize of 0.
Reported-by: buzz_
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5500e65342
flvdec: Check avpriv_mpeg4audio_get_config() return
...
value before using its output.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jean First
b6ffceefb5
mpegts: remove unused variable
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago