Anton Khirnov
fa4924a358
rawdec: factor video demuxer definitions into a macro.
2011-05-27 08:31:16 +02:00
Anton Khirnov
4779f59378
rtspdec: add initial_pause private option.
...
Deprecate corresponding AVFormatParameters field.
2011-05-27 06:52:52 +02:00
Anton Khirnov
89d1b7f406
lavf: deprecate AVFormatParameters.width/height.
2011-05-27 06:52:52 +02:00
Anton Khirnov
06d8c9e5f0
tty: add video_size private option.
2011-05-27 06:52:52 +02:00
Anton Khirnov
973f686a6c
rawdec: add video_size private option.
2011-05-27 06:52:52 +02:00
Alex Converse
86f868771b
id3v2: Check malloc result. ID3v2 tags can be very large.
2011-05-26 13:16:03 -07:00
Alex Converse
40a5dd2f35
id3v2: Initialize tflags for version 2.2.
2011-05-26 13:16:03 -07:00
Anton Khirnov
9749cdf775
lavf: initialize demuxer private options.
2011-05-26 20:03:26 +02:00
Diego Biurrun
e169428529
Mark parameterless function declarations as 'void'.
2011-05-26 16:26:17 +02:00
Alex Converse
30315a8d9c
avformat: Add fpsprobesize as an AVOption.
2011-05-25 12:34:46 -07:00
Martin Storsjö
48b1fb1397
rtmp: Reindent
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-05-25 22:01:21 +03:00
Martin Storsjö
271c869cc3
rtmp: Don't try to do av_malloc(0)
...
Some received packets can have size 0. The return value from
av_malloc(0) may be NULL, which is ok if the size was 0. On
OS X, however, the returned pointer is non-null but leads to
crashes when trying to free it.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-05-25 22:00:42 +03:00
Anton Khirnov
67540af7ba
tty: replace AVFormatParameters.sample_rate abuse with a private option.
2011-05-25 16:21:25 +02:00
John Stebbins
656566d7a4
Fix end time of last chapter in compute_chapters_end
...
Parenthesis are misplaced in calculation of max_time.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-25 15:55:48 +02:00
Anton Khirnov
d20576d01b
lavf: deprecate AVFormatParameters.channel.
2011-05-25 15:55:47 +02:00
Anton Khirnov
fc68a8f703
lavf: deprecate AVFormatParameters.standard.
2011-05-25 15:55:47 +02:00
Anton Khirnov
bffd4dd1d3
lavf: deprecate AVFormatParameters.{channels,sample_rate}.
2011-05-25 15:55:46 +02:00
Anton Khirnov
5b3865fc5f
rawdec: add sample_rate/channels private options.
2011-05-25 15:55:46 +02:00
Anton Khirnov
fb37d57347
lavf: deprecate AVFormatParameters.mpeg2ts_raw.
...
It doesn't do anything except produce an error message when set.
2011-05-25 15:20:25 +02:00
Anton Khirnov
17a5556db5
mpegts: add compute_pcr option.
...
Deprecate the corresponding AVFormatParameters field.
2011-05-25 15:20:25 +02:00
Anton Khirnov
5dc8214420
lavf: add priv_class field to AVInputFormat.
2011-05-25 15:20:25 +02:00
Ilya
4515f9b58a
rtsp: use strtoul to parse rtptime and seq values.
...
strtol could return negative values, leading to various error messages,
mainly "non-monotonically increasing dts".
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-24 19:11:28 +02:00
Carl Eugen Hoyos
ab088f7d28
ape: Allow demuxing of files with metadata tags.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-24 19:07:33 +02:00
Diego Biurrun
153382e1b6
multiple inclusion guard cleanup
...
Add missing multiple inclusion guards; clean up #endif comments;
add missing library prefixes; keep guard names consistent.
2011-05-21 13:48:10 +02:00
Can Wu
d49051e074
avio: document buffer must created with av_malloc() and friends
...
Else a later buffer resize in ffio_set_buf_size() will ABORT.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-21 13:42:50 +02:00
Can Wu
9e2dabed4a
avio: check AVIOContext malloc failure
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-21 13:42:50 +02:00
Martin Storsjö
50fefa10de
mpegtsenc: Add an AVClass pointer to the private data
...
Since a private class is set for this muxer, the callers will
assume that the private data starts with an AVClass pointer.
If no such member exists, the first few bytes of the struct
will be overwritten, and the class pointer may be broken at
any later time.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-05-20 15:16:09 +03:00
Diego Biurrun
7ed0a77ff4
Remove silly insults from avformat_version() Doxygen documentation.
2011-05-19 18:28:25 +02:00
Mans Rullgard
b122c65107
asfdec: add missing #include for av_bswap32()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-05-19 12:38:43 +01:00
Anton Khirnov
29e3489602
lavf: remove duplicate assignment in avformat_alloc_context.
...
AVClass is already initialized in avformat_get_context_defaults.
2011-05-17 23:01:42 +02:00
Anton Khirnov
f0029cbcf6
lavf: use designated initializers for AVClasses.
2011-05-17 23:01:42 +02:00
Alex Converse
13220b1856
flvdec: clenup debug code
2011-05-17 22:08:11 +02:00
Uoti Urpala
29fa570d0c
asfdec: fix possible overread on broken files.
2011-05-17 22:06:00 +02:00
Vladimir Pantelic
69fa23961e
asfdec: do not fall back to binary/generic search
...
asf_read_seek() inside the asf demuxer already does the
right thing, it tries the index and if that fails it uses
binary search. If binary search is called from outside of asfdec.c
it will fail because the asf code cannot clean up after itself.
Therefore introduce AVFMT_NOBINSEARCH that prevents the seek
code to fallback to binary search and AVFMT_NOGENSEARCH that
prevents the seek code to fallback to generic search.
2011-05-17 22:06:00 +02:00
Vladimir Pantelic
b58bc17cf7
asfdec: reindent after previous commit c7bd5ed
2011-05-17 22:05:22 +02:00
Vladimir Pantelic
c7bd5edae4
asfdec: fallback to binary search internally
...
lavf will do that anyway in case seek by index fails
2011-05-17 21:48:16 +02:00
Baptiste Coudurier
7e19a6e868
movenc: always write esds descriptor length using 4 bytes.
...
ipod shuffle doesn't support anything else.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-13 07:38:54 +02:00
Martin Storsjö
552a99957f
rtpdec_qdm2: Don't try to parse data packet if no configuration is received
...
The later parsing of payload data depends on the configuration
being present. If it hasn't been configured properly yet,
parsing a data packet may lead to a crash.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-05-13 00:20:59 +03:00
Aurelien Jacobs
89d4c13057
matroskaenc: make sure we don't produce invalid file with no codec ID
...
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-12 18:02:28 +02:00
Aurelien Jacobs
9c569ef712
matroskadec: check that pointers were initialized before accessing them
...
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-12 18:02:28 +02:00
Stefano Sabatini
4ad0693edc
lavf: fix function name in compute_pkt_fields2 av_dlog message
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-12 18:02:28 +02:00
Marton Balint
2c71581698
lavf: fix av_find_best_stream when providing a wanted stream.
...
In the main loop, stream_number is incremented after checking the stream type,
so the search usually will not find the wanted stream.
This patch eliminates the useless stream_number variable and introduces a new
one, called real_stream_index to store the real stream index of the current
stream, no matter if we are looping through all the streams or only the streams
of a program.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-12 18:02:27 +02:00
Marton Balint
6b35a795f8
lavf: fix av_find_best_stream when decoder_ret is given and using a related stream.
...
Yet another fix for the code originally designed for use without related_stream.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-12 18:02:27 +02:00
Yusuke Nakamura
5f0bb0baef
mov: Support edit list atom version 1.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-05-12 15:52:25 +02:00
Clément Bœsch
e575685fad
Cosmetics: fix prototypes in oggdec
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-05-12 13:34:20 +02:00
Clément Bœsch
5780f41af5
oggdec: fix memleak with continuous streams.
...
This avoids the creation of a new AVStream instead of replacing it when
a stream reset occurs (track change with some webradios for example).
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-05-12 13:34:20 +02:00
Aurelien Jacobs
2501d2f386
matroskaenc: add missing new line in av_log() call
...
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-12 13:08:30 +02:00
Baptiste Coudurier
304e983dc7
movenc: fix yuv range in avid atoms used by dnxhd.
...
yuv range: full 1 / normal 2
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-12 13:07:21 +02:00
Alex Converse
7fe3207e25
movenc: fix adpcm mono muxing.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-12 13:05:30 +02:00
Baptiste Coudurier
6ae38aa3ce
mpegts: do not output known sized packet if an unbounded packet is already queued.
...
Fix issue #2624 .
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-05-12 13:04:58 +02:00