Martin Storsjö
1f712e6a05
rtsp: Remove extern declarations for variables that don't exist
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-01-21 01:12:07 +02:00
Martin Storsjö
23e57d167a
Add a tool that uses avio to read and write, doing a plain copy of data
...
It also optionally can throttle its operation to a particular
speed, to simulate realtime writing.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-01-20 22:19:09 +02:00
Janne Grunau
59297ad63d
lavf: force single-threaded decoding in avformat_find_stream_info
...
The H.264 decoder needs SPS and PPS for initialization during
multi-threaded decoding. When probed single-threaded SPS and PPS are
copied to extradata and are available for proper initialization of
the decoder before the first frame is decoded.
2012-01-20 09:41:46 +01:00
Dustin Brody
b89f8774f2
avidec: migrate last of lavf from FF_ER_* to AV_EF_*
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2012-01-20 09:30:09 +01:00
Anton Khirnov
aa2e4bb058
lavf: free packets for muxers implementing interleave_packet().
...
Fixes a memleak.
2012-01-18 20:10:26 +01:00
Anton Khirnov
f97cb45156
lavf: fix and extend av_interleaved_write_frame() doxy.
...
Specify that lavf is responsible for freeing the data.
2012-01-18 20:08:13 +01:00
Alex Converse
d7420e0ac9
mov: Remove dead stores for spherical coordinates for channel position.
2012-01-18 10:54:25 -08:00
Paul B Mahol
ffa0923eee
add SMJPEG muxer
...
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
2012-01-16 11:29:55 +01:00
Paul B Mahol
68b94f8bc3
avformat: split out common SMJPEG code
...
This is a preparation for adding SMJPEG muxer.
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
2012-01-16 11:29:55 +01:00
Daniel Huang
bcd5d979aa
mov, mxfdec: Employ more meaningful return values.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2012-01-15 22:00:11 +01:00
Alex Converse
4df30f7114
utils: Check for extradata size overflows.
2012-01-12 13:26:13 -08:00
Martin Storsjö
6b9e4eea83
avio: Fix the value of the deprecated URL_FLAG_NONBLOCK
...
This isn't used in practice anywhere within libav at the moment,
but change it for consistency until it is removed.
URL_RDONLY/WRONLY were fixed in commit 5b81e29593
(after the
values that actually were used were changed at the major bump,
in commit cbea3ac8
), but this flag was unintentionally left unfixed.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-01-12 22:07:10 +02:00
Anton Khirnov
44bcab5883
ffmenc: remove references to deprecated AVFormatContext.timestamp.
2012-01-12 18:18:23 +01:00
Anton Khirnov
e5c708151e
lavf: undeprecate read_seek().
...
The "new seeking API" was never finished and nobody is working on it.
2012-01-12 18:18:23 +01:00
Anton Khirnov
0fd88d3988
riff: remove references to sonic codec ids
...
They are deprecated and will be purged on next major bump.
2012-01-12 18:18:22 +01:00
Justin Ruggles
f01f6a8474
gsm demuxer: use generic seeking instead of a gsm-specific function.
...
Since packets all contain only a single block, the generic seek function can
be used while still maintaining block-accuracy.
2012-01-11 08:56:24 -05:00
Justin Ruggles
467879eb54
gsm demuxer: return packets with only 1 gsm block at a time.
...
fixes stream copy of raw gsm to mov.
tested with QuickTime.
2012-01-11 08:56:24 -05:00
Janne Grunau
68e252f548
wtv: fix memleaks during normal operation
2012-01-11 01:34:30 +01:00
Justin Ruggles
4556ebfb7d
ipmovie: fix pts for CODEC_ID_INTERPLAY_DPCM
...
frame sample count calculation was incorrect
2012-01-10 14:25:07 -05:00
Justin Ruggles
e9626eb32e
sierravmd: fix audio pts
...
The duration of the first packet was being calculated incorrectly, leading to
an incorrect timestamp offset.
2012-01-10 14:24:08 -05:00
Martin Storsjö
a78dbada55
movenc: Don't store a nonzero creation time if nothing was set by the caller
...
If the creation time is stored in the file as a zero, the
mov demuxer skips exporting the creation time. Currently,
files muxed without a creation time get demuxed with a
Jan 1st 1970 creation timestamp.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-01-10 16:02:07 +02:00
Diego Biurrun
52877251cf
build: Skip compiling network.h and rtsp.h if networking is not enabled.
...
rtsp.h relies on network.h and the latter conditionally defines fallback OS
structures that rely on configure tests, which are only run if networking
is enabled.
2012-01-07 22:13:08 +01:00
Diego Biurrun
3dc99a18d4
cosmetics: drop some pointless parentheses
2012-01-07 22:13:07 +01:00
Paul B Mahol
49a2aebc00
vqf: recognize more metadata chunks
...
Do not create tags for non-char chunks.
Create readable tag for DSIZ chunk.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2012-01-07 11:14:57 -08:00
Michael Niedermayer
4b4acc544f
tta: Fix returned error code at EOF
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
2012-01-07 09:59:15 -05:00
Michael Niedermayer
d8b33a9989
tta: fix off be 1 error in the end detection.
...
Fixes use of uninitialized values.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
2012-01-07 09:59:09 -05:00
Paul B Mahol
75146b8828
ipmovie: Add param change side data if the video dimensions have changed
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-01-07 15:25:41 +02:00
Janne Grunau
73b16198b6
electronicarts: check bytes per sample for validity
...
Prevents division by zero.
2012-01-07 00:18:42 +01:00
Paul B Mahol
f86209b43d
vqf: add more known extensions
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2012-01-06 09:24:40 -08:00
Anssi Hannula
580bb77936
spdifenc: use special alignment for DTS-HD length_code
...
Align IEC 61937 length_code for DTS-HD so that
(length_code & 0xf) == 0x8. This is reportedly needed with some
receivers.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2012-01-05 16:27:07 -08:00
Janne Grunau
f5be84cfbc
ipmovie: do not read audio packets before the codec is known
...
Prevents a division by zero.
2012-01-05 23:19:14 +01:00
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>
2012-01-05 23:56:56 +02:00
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>
2012-01-05 23:56:52 +02:00
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>
2012-01-05 21:21:57 +01:00
Alex Converse
4274e481c0
mov: Support MOV_CH_LAYOUT_USE_DESCRIPTIONS for labeled descriptions.
2012-01-05 10:34:06 -08:00
Anton Khirnov
f9b9dd8740
lavf: cosmetics, reformat av_read_frame().
2012-01-05 14:34:28 +01:00
Anton Khirnov
6450599e22
lavf: refactor av_read_frame() to make it easier to understand.
2012-01-05 14:34:13 +01:00
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>
2012-01-04 17:47:19 -05:00
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>
2012-01-04 22:15:47 +02:00
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>
2012-01-04 22:15:42 +02:00
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.
2012-01-04 11:18:24 +01:00
Justin Ruggles
779ef255e6
adx: add an adx muxer
2012-01-03 18:47:42 -05:00
Justin Ruggles
99baf2c7d0
adx: add AVFMT_GENERIC_INDEX to demuxer flags.
...
fixes seeking
2012-01-03 18:47:41 -05:00
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.
2012-01-03 14:58:21 +01:00
Diego Biurrun
8fd35b1aac
Fix a bunch of typos.
2012-01-02 16:41:25 +01:00
Diego Biurrun
44b0edda3f
Drop some pointless void* return value casts from av_malloc() invocations.
2012-01-02 16:41:24 +01:00
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>
2012-01-02 00:23:40 +01:00
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>
2012-01-01 22:27:04 +01:00
Carl Eugen Hoyos
835af79b05
Detect 'yuv2' as rawvideo also in avi.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2012-01-01 22:27:04 +01:00
Janne Grunau
e4e30256f8
threads: default to automatic thread count detection
2011-12-31 17:40:12 +01:00