Michael Niedermayer
e738811ceb
lavf: add AVFMT_SEEK_TO_PTS to indicate seeking is per PTS.
...
See: [FFmpeg-devel] [PATCH] Add documentation that seeking is done by DTS and not PTS
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
4a95876f4d
Add skip_to_keyframe stream variable.
...
This replaces the matroskadec one with the same name.
The advantage is not only easier reuse in other demuxers
but also that we can make the decisions after the parser.
This fixes seeking in files that mark the keyframes incorrectly,
for example the file in track ticket #1003 .
The matroska variable is still kept to be able to complain
about such broken files.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
a45605a1ba
Add AVIO_FLAG_DIRECT.
...
Allows avoiding the buffer when using avio read, write and seek functions.
When using the ffmpeg executable -avioflags direct can be used to enable
this mode for input files, but has no effect on output files.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
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
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
Martin Storsjö
e20ad71ebb
libavformat: Document who sets the AVStream.id field
...
Signed-off-by: Martin Storsjö <martin@martin.st>
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
Lou Logan
2d38081b4f
cosmetics: fix some typos
...
Patch attached.
From 2d4094fc0dcb4ccd0735eb7e1719e228ebb56bb9 Mon Sep 17 00:00:00 2001
From: Lou Logan <lou@lrcd.com>
Date: Mon, 12 Mar 2012 14:13:44 -0800
Subject: [PATCH] cosmetics: fix some typos
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
8c1d6ac66a
avformat: do not require a pixel/sample format if there is no decoder
...
Also, do not keep trying to find and open a decoder in try_decode_frame() if
we already tried and failed once.
Fixes always searching until max_analyze_duration in
avformat_find_stream_info() when demuxing codecs without a decoder.
13 years ago
Anton Khirnov
27c7ca9c12
lavf: deobfuscate read_frame_internal().
...
Split off packet parsing into a separate function. Parse full packets at
once and store them in a queue, eliminating the need for tracking
parsing state in AVStream.
The horrible unreadable loop in read_frame_internal() now isn't weirdly
ordered and doesn't contain evil gotos, so it should be much easier to
understand.
compute_pkt_fields() now invents slightly different timestamps for two
raw vc1 tests, due to has_b_frames being set a bit later. They shouldn't
be more wrong (or right) than previous ones.
13 years ago
Anton Khirnov
dd2a4bcfd7
lavf: generic code for exporting attached pictures.
13 years ago
Luca Barbato
ee42df8a35
avf: reorder AVStream and AVFormatContext
13 years ago
Luca Barbato
6b8b0fe2bc
doxy: remove reference to removed api
13 years ago
Michael Niedermayer
9fdae05607
libavformat/avformat.h: fix stray libavformat reference
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
dd6d3b0e02
lavf: add functions for accessing the fourcc<->CodecID mapping tables.
...
Fixes bug 212.
13 years ago
Anton Khirnov
f7fe41a04f
lavf: rename AVInputFormat.value to raw_codec_id.
...
It's only used by raw demuxers for storing the codec id.
13 years ago
Anton Khirnov
183eaa9a25
lavf: reorder AVInput/OutputFormat fields.
...
Put all private fields at the end and mark them as such so they can be
easily changed/removed.
This breaks ABI.
13 years ago
Anton Khirnov
c5254755c0
lavf: remove disabled FF_API_SET_PTS_INFO cruft
13 years ago
Anton Khirnov
bf868727d7
lavf: remove disabled FF_API_REORDER_PRIVATE cruft
13 years ago
Anton Khirnov
fd87ba3220
lavf: remove disabled FF_API_SEEK_PUBLIC cruft
13 years ago
Anton Khirnov
bd4c51312b
lavf: remove disabled FF_API_STREAM_COPY cruft
13 years ago
Anton Khirnov
2a0f868cfa
lavf: remove disabled FF_API_PRELOAD cruft
13 years ago
Anton Khirnov
1329827e79
lavf: remove disabled FF_API_NEW_STREAM cruft
13 years ago
Anton Khirnov
f0cb13958d
lavf: remove disabled FF_API_MUXRATE cruft
13 years ago
Anton Khirnov
2f5e728b58
lavf: remove disabled FF_API_FILESIZE cruft
13 years ago
Anton Khirnov
df0bb26aca
lavf: remove disabled FF_API_TIMESTAMP cruft
13 years ago
Anton Khirnov
3bbfd3026c
lavf: remove disabled FF_API_LOOP_OUTPUT cruft
13 years ago
Anton Khirnov
6dc345555f
lavf: remove disabled FF_API_LOOP_INPUT cruft
13 years ago
Anton Khirnov
b32e30faa1
lavf: remove disabled FF_API_AVSTREAM_QUALITY cruft
13 years ago
Anton Khirnov
2d70912cc2
lavf: remove disabled FF_API_FLAG_RTP_HINT cruft
13 years ago
Anton Khirnov
1d911bb404
lavf: remove disabled FF_API_SDP_CREATE cruft
13 years ago
Anton Khirnov
64f6f6f836
lavf: remove disabled FF_API_GUESS_IMG2_CODEC cruft
13 years ago
Anton Khirnov
21824e5b88
lavf: remove disabled FF_API_PKT_DUMP cruft
13 years ago
Anton Khirnov
cc10ab79ec
lavf: remove disabled FF_API_FIND_INFO_TAG cruft
13 years ago
Anton Khirnov
ecd5f41a06
lavf: remove disabled FF_API_PARSE_DATE cruft
13 years ago
Anton Khirnov
997420abf2
lavf: remove disabled FF_API_DUMP_FORMAT cruft
13 years ago
Anton Khirnov
2fb7501938
lavf: remove disabled FF_API_FORMAT_PARAMETERS cruft
...
Also remove now unused AVFormatParameters struct and
AVOutputFormat.set_parameters().
13 years ago
Anton Khirnov
38233fc131
lavf: remove disabled FF_API_OLD_METADATA2 cruft
13 years ago
Anton Khirnov
6e9651d106
lavf: remove AVFormatParameters from AVFormatContext.read_header signature
13 years ago
Martin Storsjö
f1caf01d5e
libavformat: Add a flag for muxers that support write_packet(NULL) for flushing
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
f97cb45156
lavf: fix and extend av_interleaved_write_frame() doxy.
...
Specify that lavf is responsible for freeing the data.
13 years ago
Anton Khirnov
e5c708151e
lavf: undeprecate read_seek().
...
The "new seeking API" was never finished and nobody is working on it.
13 years ago
Diego Biurrun
58c42af722
doxygen: misc consistency, spelling and wording fixes
13 years ago
Anton Khirnov
526604545f
lavf: add avformat_close_input().
...
It sets the supplied AVFormatContext pointer to NULL after freeing it,
which is safer and its name is consistent with other lavf functions.
Also deprecate av_close_input_file().
13 years ago
Anton Khirnov
3a7f7678eb
lavf: deprecate av_close_input_stream().
...
And remove all its uses.
13 years ago