Jindrich Makovicka
904100e5fc
make av_interleaved_write_frame() flush packets when pkt is NULL
...
This patch allows the user to force flushing of all queued packets
by calling av_interleaved_write_frame() with pkt set to NULL.
Signed-off-by: Jindrich Makovicka <jindrich.makovicka@nangu.tv>
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Alex Converse
c9024a9fd7
mpegts: Fix dead error checks
13 years ago
Diego Biurrun
ad0e31f134
build: prettyprinting cosmetics
13 years ago
Anton Khirnov
967923abd1
lavf doxy: expand AVStream.codec doxy.
13 years ago
Anton Khirnov
e44ada129c
lavf doxy: improve AVStream.time_base doxy.
...
Remove confusing sentence that implied the user should set the timebase.
Elaborate on how the timebase is set for muxing.
13 years ago
Anton Khirnov
f58b8cc3e3
lavf doxy: add some basic documentation about reading from the demuxer.
13 years ago
Anton Khirnov
10fa4ff7bc
lavf doxy: document passing options to demuxers.
13 years ago
Anton Khirnov
dca9c81d82
lavf doxy: clarify that an AVPacket contains encoded data.
13 years ago
Jindrich Makovicka
3fadb29baf
mpegtsenc: allow user triggered PES packet flushing
...
Signed-off-by: Jindrich Makovicka <jindrich.makovicka@nangu.tv>
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
68893afe1d
movenc: Merge if statements
...
This isn't exactly equivalent with the earlier code for codecs
other than H264 and VC1, but those are two only codecs supported
by this codepath anyway, and it simplifies it a bit.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
d5ed5e7d0c
avc: Add a function for converting mp4 style extradata to annex b
...
Make movenc use this function instead of the current custom
conversion function.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
e20ad71ebb
libavformat: Document who sets the AVStream.id field
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Alex Converse
5023b89bba
xwma: Validate channels and bits_per_coded_sample.
...
This prevents a SIGFPE later on.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Alex Converse
86f2ae06b9
mov: Do not read past the end of the ctts_data table.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Alex Converse
3e6e89b3d6
mov: Add missing terminator to mov_ch_layout_map_1ch.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: Libav-stable@libav.org
13 years ago
Ronald S. Bultje
e73c6aaabf
asf: reset side data elements on packet copy.
...
Prevents crash (double free) when free()ing the original packet.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
13 years ago
Michael Niedermayer
f0b4a505d8
oggparseogm: fix order of arguments of avpriv_set_pts_info().
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Justin Ruggles
f036342b4b
aiffdec: set block_duration to 1 for PCM codecs that are supported in AIFF-C
13 years ago
Justin Ruggles
b38b7cc392
aiffdec: factor out handling of integer PCM for AIFF-C and plain AIFF
13 years ago
Justin Ruggles
2c07c18048
aiffdec: use av_get_audio_frame_duration() to set block_duration for AIFF-C
13 years ago
Justin Ruggles
02f88eec1d
aiffdec: do not set bit rate if block duration is unknown
...
CC: libav-stable@libav.org
13 years ago
Anton Khirnov
a6733202cc
lavf: make av_interleave_packet_per_dts() private.
...
There is no reason for it to be public, it's only meant to be used
internally.
13 years ago
Anton Khirnov
3c90cc2ef2
lavf: deprecate av_read_packet().
...
The caller can achieve the same effect (i.e. getting raw unparsed/mangled
packets) with av_read_frame() and AVFMT_FLAG_NOPARSE |
AVFMT_FLAG_NOFILLIN
13 years ago
Justin Ruggles
f63412fc74
oggdec: output correct timestamps for Vorbis
...
Takes encoder delay into account by comparing first the coded page
duration with the calculated page duration. Handles last packet duration
if needed, also by comparing coded duration with calculated duration.
Also does better handling of timestamp generation for packets in the
first page for streamed ogg files where the start time is not
necessarily zero.
13 years ago
Justin Ruggles
777365fe86
xa: set correct bit rate
...
Also fixes stream duration calculation.
13 years ago
Justin Ruggles
a54bc52265
xa: do not set bit_rate, block_align, or bits_per_coded_sample
...
The values in the header refer to decoded data, not compressed data.
13 years ago
Justin Ruggles
64de57f645
xa: fix end-of-file handling
...
Do not output an extra packet when out_size is reached.
Also return AVERROR_EOF instead of AVERROR(EIO).
13 years ago
Justin Ruggles
cd2ffb67ad
xa: fix timestamp calculation
...
The packet duration is always 28 samples.
13 years ago
Martin Storsjö
39f5a5462c
movenc: Add a min_frag_duration option
...
The other fragmentation options (frag_duration, frag_size and
frag_keyframe) are combined with OR, cutting fragments at the
first of the conditions being fulfilled.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
ccfa8aa26f
rtsp: Set the default delay to 0.1 s for the RTSP/SDP/RTP demuxers
...
This enables reordering of UDP packets by default, unless the caller
explicitly sets -max_delay 0.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
4fa57d524f
libavformat: Set the default for the max_delay option to -1
...
Make the muxers/demuxers that use the field handle the default
-1 in the same way as 0.
This allows distinguishing an intentionally set 0 from the default
value where the user hasn't set it.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
5626697104
Move AVFormatContext/AVCodecContext option tables to separate files.
...
This will allow us to automatically generate manpages for them.
13 years ago
Anton Khirnov
40b41be3fa
lavf: use AVStream.discard to disable queueing attached pictures.
13 years ago
Anton Khirnov
01fcc42b90
lavf: requeue attached pictures after seeking.
...
This allows the caller to get them without special code even after
seeking before receiving any data.
13 years ago
Anton Khirnov
713f3062a7
id3v2: set the keyframe flag on attached pictures.
13 years ago
Derek Buitenhuis
0e714f889e
ZeroCodec Decoder
...
An obscure Japanese lossless video codec, originally intended
for use with a remote desktop application.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Kostya Shishkov
b8560637d9
RealAudio Lossless decoder
13 years ago
Martin Storsjö
316e724f18
rtpenc: Use AVFormatContext.packet_size instead of a private option
...
The private option has not been part of any release yet (and
it is only of use in quite rare cases), so just remove it instead
of keeping it with deprecation warnings.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Nicolas George
01b0ade665
url: Document the expected behaviour of url_read
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
57151f8674
libavformat: Use AVFormatContext.probesize in init_input
...
This was forgotten in the transition from av_open_input_file to
avformat_open_input, see 603b8bc2a1
.
This doesn't change anything for the default case where the
option isn't set, since PROBE_BUF_MAX is 1048576 (which was
used as max probe size earlier) while the default value for
the probesize option is 5000000, which for the probe function
is clipped to PROBE_BUF_MAX anyway.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
17934c1824
cosmetics: Align some AVInput/OutputFormat declarations
...
Also add missing trailing commas.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
72ec043af4
oma: Fix out of array read.
...
Input: 01-Untitled-partial.oma
ZZUF params: zzuf[s=7157,r=0.001]
Fixes Bugzilla #106
Bug-found-by: darkshikari
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Anton Khirnov
8bc5d90a7e
lavf: remove some disabled code.
13 years ago
Anton Khirnov
f35f8eeb0d
lavf: only set average frame rate for video.
13 years ago
Anton Khirnov
9ade26ee91
lavf: remove a pointless check.
...
Timebase is already checked in avpriv_set_pts_info().
13 years ago
Paul B Mahol
0afd8f12e9
avcodec: add XBM encoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Anton Khirnov
cd9a3c3512
lavf: don't select an attached picture as default stream for seeking.
13 years ago
Paul B Mahol
d3d1b25e69
jv demux: set video stream duration
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Martin Storsjö
499ad54d98
http: Clear the auth state on redirects
...
Currently we only try continuing with the same auth mechanism
as the initial request.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
e75bbcf493
http: Retry auth if it failed due to being stale
...
Allow up to 4 retries for normal requests, where both the
proxy and the target server might need to authenticate.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago