Laurent Aimar
1775b92fee
segafilm: Check for memory allocation failures in segafilm demuxer.
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
2011-10-06 23:19:45 +02:00
Laurent Aimar
762ffa6861
segafilm: Fix potential division by 0 on corrupted streams in the demuxer
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
2011-10-06 23:01:45 +02:00
Laurent Aimar
790f4dd5c9
Fixed segfault on corrupted sega streams in the demuxer.
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
2011-10-06 22:32:02 +02:00
Anton Khirnov
a4ea00d021
lavc/lavf: use unique private classes.
...
This is needed by the new AVOptions API.
2011-10-05 07:52:30 +02:00
Diego Biurrun
12bd8532cf
Synchronize various 4CCs and codec tags from FFmpeg.
2011-10-04 11:58:53 +02:00
Justin Ruggles
fc2dd2c7ac
ogg/celt: do not set sample_fmt in the demuxer
2011-10-03 21:23:22 -04:00
Anton Khirnov
60df6b0048
id3v2: remove pointless casts
2011-10-03 13:06:51 +02:00
Anton Khirnov
d2961e4ebf
id3v2: read TXXX frames with two calls to decode_str() instead of one.
...
Read the key in the first, value in the second.
This allows to avoid pointless strdups and simplify decode_str() by
dropping two of its parameters.
2011-10-03 13:06:51 +02:00
Anton Khirnov
1e18d32d01
id3v2: don't discard the whole tag when encountering empty frames.
...
While they're technically invalid, it's better to skip them and try to
read the rest of the tag.
2011-10-03 13:06:41 +02:00
Martin Storsjö
e81e5e8ad2
lavf: Avoid using av_malloc(0) in av_dump_format
...
On OS X, av_malloc(0) returns pointers that cause crashes when
freed.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-30 22:31:30 +03:00
Kieran Kunhya
d4a544cbc4
latmenc: Set latmBufferFullness to largest value to indicate it is not used
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
2011-09-30 11:17:27 +02:00
Alex Converse
fe21f78d2b
mpeg probe: check the 2/4-bit synchronization value found after a pack_start_code.
2011-09-29 09:45:57 -07:00
Kieran Kunhya
32dfd8ca65
latmenc: Fix private options
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-28 15:49:07 +03:00
Michael Niedermayer
77d2ef13a8
Fix memory (re)allocation in matroskadec.c, related to MSVR-11-0080.
...
Whitespace of the patch cleaned up by Aurel
Some of the issues have been reported by Steve Manzuik / Microsoft Vulnerability Research (MSVR)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 956c901c68
)
Further suggestions from Kostya <kostya.shishkov@gmail.com> have been
implemented by Reinhard Tartler <siretart@tauware.de>
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
2011-09-27 23:14:05 +02:00
Anton Khirnov
c7a63a521b
matroskaenc: write attachments.
2011-09-27 15:26:36 +02:00
Anton Khirnov
98cfe22b5c
matroskadec: export mimetype of attachments as metadata.
2011-09-27 15:26:36 +02:00
Rafaël Carré
1430ae44e8
rtp: Simplify ff_rtp_get_payload_type
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-26 21:55:27 +03:00
Rafaël Carré
9152880e95
rtpenc: Add a payload type private option
...
Specifying the payload type is useful when the type number has
already been negotiated before creating the stream, for example
in SIP protocol.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-26 21:54:57 +03:00
Rafaël Carré
142887741f
rtp: Correct ff_rtp_get_payload_type documentation
...
Since 0c378ea1f
, it can't fail anymore.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-26 21:54:14 +03:00
Nicolas George
4ca59d1948
oggdec: add support for Xiph's CELT codec
...
This patch also introduces CODEC_ID_CELT.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-09-26 13:51:29 +02:00
Justin Ruggles
b15a9888a8
sol: return error if av_get_packet() fails.
...
This prevents sending a packet with data=NULL size=AVERROR_EOF.
2011-09-25 16:53:49 -04:00
Mans Rullgard
bb416bd68c
lavf: do not set codec_tag for rawvideo
...
If the demuxer did not set a codec_tag, there is none and
inventing one makes no sense. This change stops the rawvideo
"decoder" over-writing user-supplied pixfmt with one derived
from the codec_tag. The pixfmt-codec_tag-pixfmt round-trip
is lossy since several pixfmts map to the same codec_tag.
This fixes fate-lavf-pixfmt with avfilter disabled.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-09-25 14:07:21 +01:00
Michael Niedermayer
a246cefa75
flvdec: Check for overflow before allocating arrays
...
On allocation, the array length is multiplied by sizeof(int64_t),
this prevents the multiplication from overflowing.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-25 12:55:21 +03:00
Laurent Aimar
2b4e49d428
flvdec: Fix invalid pointer deferences when parsing index
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-24 18:08:39 +03:00
Diego Biurrun
30b4ee7901
Use explicit struct initializers for AVOutputFormat/AVInputFormat declarations.
2011-09-24 12:11:17 +02:00
Alex Converse
9fba8ebe0a
mpegps: Handle buffer exhaustion when reading packets.
2011-09-23 16:36:16 -07:00
Rafaël Carré
0c378ea1f7
rtp: factorize dynamic payload type fallback
...
Move the identical code in rtp_write_header() and
ff_sdp_write_media() inside ff_rtp_get_payload_type()
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-09-23 22:00:24 +02:00
Martin Storsjö
bafff1668c
flvdec: Ignore the index if it's from a creator known to be different
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-23 20:59:48 +03:00
Diego Biurrun
5cc2530fc2
prores: mark prores as intra-only in libavformat/utils.c:is_intra_only()
2011-09-23 01:42:14 +02:00
Janne Grunau
dcb9f6a20d
Add LATM demuxer
...
This is a raw demuxer for the AAC LATM decoder and thus limited to
single stream LOAS.
2011-09-22 20:39:24 +02:00
Justin Ruggles
1993c6849c
8svx/iff: fix decoding of compressed stereo 8svx files.
...
Make the iff demuxer send the whole audio chunk to the decoder as a
single packet and move stereo interleaving from the iff demuxer to the
decoder.
Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2a
2011-09-22 14:11:34 -04:00
Alex Converse
1c2e07b811
mp4: Don't read an empty Decoder Config Descriptor
2011-09-22 10:09:04 -07:00
Martin Storsjö
b14629e5ea
rtmp: Make the input FLV parser handle data cut at any point
...
This makes the RTMP writing code able to handle FLV data
fed in arbitrarily small or large chunks, with multiple
consecutive packets in one write call, or having the FLV
packet header split over numerous write calls.
When used in conjunction with the flv muxer, the AVIO buffer
size still needs to be large enough to fit the initial metadata
packet though, since the size of that packet is written with a
seekback.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-22 10:36:16 +03:00
Alex Converse
05fc9e40a4
swfdec: Add support for sample_rate_code 0 (5512 Hz)
2011-09-21 09:42:35 -07:00
Anton Khirnov
609a2fa1fa
Remove some forgotten AVCodecContext.palctrl usage.
2011-09-21 13:51:53 +02:00
Diego Biurrun
35a6855868
Fix av_dlog invocations with wrong or missing logging context.
...
This fixes build failures with -DDEBUG in CPPFLAGS.
2011-09-21 09:57:32 +02:00
David Goldwich
61f4387d39
oma: support for encrypted files
...
Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-09-21 08:33:15 +02:00
David Goldwich
7a019dffe5
id3v2: add support for non-text and GEOB type tag frames
...
This extends the ID3v2 parser to allow for reading of non-text (i.e.
other than T***) meta tag frames providing a ff_id3v2_read_all()
function. An additional data structure 'ID3v2ExtraMeta' is introduced
for these tags since AVDictionary is string oriented and unsuitable
for binary data.
A parser for tag frames of type GEOB is implemented, which is needed
to extract keyring information from encrypted OMA files. GEOB data
is parsed into 'ID3v2ExtraMetaGEOB' data structures.
The routine to decode characters from different encodings to UTF-8,
formerly part of the read_ttag() function, is moved to its own
function. Because some tag frames contain subparts of unknown length,
the function is now also able to read until a null character is found.
In addition, the function now takes care of allocating a buffer long
enough to hold the decoded characters.
Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-09-21 08:28:21 +02:00
Martin Storsjö
3ffe32eb96
rtmp: Don't blindly skip the 4 trailer bytes from the FLV packets
...
If not enough bytes are available, keep track of them and skip
them on next call.
In practice, if these trailer bytes are written in a separate
call, there is no other data written in this call, making it
fall into the "FLV packet too small" case currently - working,
but not as intended.
This patch makes the code more robust, handling all cases
except for having the FLV packet header split over multiple
write calls.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-20 16:23:48 +03:00
Chiranjeevi Melam
a14c784210
rtmp: Handle FLV packets written in more than one write call
...
If the FLV packet is larger than the AVIO buffer, a partial
FLV packet will be flushed to the RTMP protocol.
This commit handles the most common cases of FLV packets
being written in more than one call.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-20 16:23:46 +03:00
Anton Khirnov
c92a2a4eb8
movenc: fix NULL reference in mov_write_tkhd_tag
...
st may be NULL when there are more mov streams than AVStreams, e.g. when
chapters are present.
2011-09-19 16:44:42 +02:00
Laurent Aimar
f06068bbd6
rmdec: Reject invalid deinterleaving parameters
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-19 15:45:22 +03:00
Laurent Aimar
3e033da847
rmdec: use the deinterleaving mode and not the codec when creating audio packets.
...
It prevents crashes due to non initialized fields.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-09-19 12:37:31 +02:00
David Goldwich
63d64228a7
lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails
...
Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-09-19 12:03:56 +02:00
Laurent Aimar
0e7efb9d23
oggdec: fix out of bound write in the ogg demuxer
...
Between ogg_save() and ogg_restore() calls, the number of streams
could have been reduced.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-09-17 09:41:02 -07:00
Anton Khirnov
7574cacbd5
movenc: create an alternate group for each media type
...
Partially fixes bug 44.
2011-09-17 08:42:30 +02:00
Anton Khirnov
85d982f1e2
rawdec: refactor private option for raw video demuxers
...
pixel_format/video_size only apply to 'rawvideo' (==uncompressed) demuxer
and make no sense for the other raw (== containerless) demuxers. Keep
only the framerate option for those.
Also use unique classes for all raw video demuxers
2011-09-17 06:43:09 +02:00
Anton Khirnov
34d2bf30a0
pcmdec: use unique classes for all pcm demuxers.
2011-09-17 06:42:32 +02:00
Anton Khirnov
d906f49aa8
rawdec: g722 is always 1 channel/16kHz
2011-09-17 06:42:17 +02:00
Laurent Aimar
b59efc9434
Fixed size given to init_get_bits().
...
init_get_bits() takes a number of bits and not a number of bytes as
its size argument.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
2011-09-15 13:23:04 -07:00
Dustin Brody
d7d2f0e63c
matroskadec: fix typo.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-09-15 09:34:38 +02:00
Dustin Brody
4a9628f276
matroskadec: bail on parsing of incorrect seek index segments
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-09-15 09:34:16 +02:00
Alex Converse
940173d4d1
lavf utils: Remove write-only variable
2011-09-14 10:35:46 -07:00
Alex Converse
4439caa482
lavf utils: Rename shadowing variable
2011-09-14 10:35:42 -07:00
Laurent Aimar
a92d0fa5d2
Fixed off by one packet size allocation in the smacker demuxer.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-12 23:44:51 +03:00
Laurent Aimar
e055932f56
Check for invalid packet size in the smacker demuxer.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-12 23:43:52 +03:00
Laurent Aimar
273aab99bf
ape demuxer: fix segfault on memory allocation failure.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-09-12 21:12:31 +02:00
Kostya Shishkov
47a8589f7b
smacker demuxer: handle possible av_realloc() failure.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-09-12 15:51:21 +02:00
Georgi Chorbadzhiyski
f1f15c3c1a
mpegts: improve error reporting
...
When reporting continuity error show pid, expected and received cc.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-09-11 09:27:13 -04:00
Aviad Rozenhek
162f1fbc14
mpegts: on seek, reset the cc for all PIDs
...
Prevent false positive continuity counter error logs.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-09-11 09:26:21 -04:00
Diego Biurrun
6376362d15
Employ FF_ARRAY_ELEMS instead of manually calculating array length.
2011-09-08 15:57:14 +02:00
Michael Niedermayer
5ea091fb5a
rtpdec_asf: Fix integer underflow that could allow remote code execution
...
Fixes MSVR-11-0088.
Credit: Jeong Wook Oh of Microsoft and Microsoft Vulnerability Research (MSVR)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-07 23:33:53 +03:00
Kieran Kunhya
0ca36b4de7
Add LATM muxer
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
2011-09-07 12:57:55 +02:00
Anton Khirnov
9c684feadc
libx264: add 'direct-pred' private option
...
Deprecate AVCodecContext.directpred
2011-09-07 07:27:55 +02:00
Anton Khirnov
0635a8aa21
libx264: add 'partitions' private option
...
Deprecate AVCodecContext.partitions.
2011-09-07 07:27:18 +02:00
Stefan Fritsch
346ea9e222
http: Consider the stream as seekable if the reply contains Accept-Ranges: bytes
...
The initial request contains "Range: 0-", which servers normally
have responded with "HTTP/1.1 206 Partial Content" reply with
a Content-Range header, which was used as indicator for seekability.
Apache, since 2.2.20, responds with "HTTP/1.1 200 OK" for these
requests, which is more friendly to caches and proxies, but the
seekability still is indicated via the Accept-Ranges: bytes header.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-04 11:28:53 +02:00
Luca Barbato
5ee5dc4e9a
nutenc: add namespace to the api facing functions
...
Rename write_{header,packet,trailer} to nut_write_{header,packet,trailer}
in order to make easier debugging them.
2011-09-04 11:09:06 +02:00
Anton Khirnov
fb4ca26bdb
lavf,lavc,sws: add {avcodec,avformat,sws}_get_class() functions.
2011-09-03 20:53:35 +02:00
Anton Khirnov
c11fb8288d
AVOptions: add AV_OPT_SEARCH_FAKE_OBJ flag for av_opt_find().
...
It allows to search for options only with AVClass, without allocating
the corresponding context.
2011-09-03 20:52:21 +02:00
Tomas Härdin
8b7222979c
isom: add missing AVC-Intra tags, rearrange list and update comments
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-08-29 16:48:39 +02:00
Kostya Shishkov
10397215aa
Use deinterleavers for demangling audio packets in RealMedia.
...
Unlike other containers RealMedia stores its audio packets in scrambled form,
with interleaver ID preceeding audio codec ID. Currently deinterleaving
decision is tied to the codec while it's possible to have non-default
deinterleaver with audio codec (like Int0 deinterleaver instead of specific
one for Sipro).
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-08-27 17:23:45 +02:00
Stefano Sabatini
f2011ed234
fifo: add av_fifo_peek2(), and deprecate av_fifo_peek()
...
The new function provides a more generic interface than av_fifo_peek()
for peeking at a FIFO buffer data.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-08-26 20:53:02 +02:00
Diego Biurrun
c960e67ad0
Replace deprecated av_find_stream_info() by avformat_find_stream_info().
2011-08-26 17:40:07 +02:00
Sven Hesse
5f677aac76
xmv: eliminate superfluous zeroing of zero data
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-08-26 16:26:57 +02:00
Alex Converse
ad6c7c1b52
mp4: Handle non-trivial ES Descriptors.
2011-08-25 11:53:21 -07:00
Alex Converse
7e6029f98a
lavf utils: Fix bad indentation.
2011-08-23 09:53:23 -07:00
Alberto Delmás
45ecda8554
Windows Media Image decoder (WMVP/WVP2)
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-08-23 11:18:35 +02:00
Anton Khirnov
fb42d156ed
movenc: use libx264 by default when possible for mov, mp4 and psp
2011-08-22 07:17:35 +02:00
Anton Khirnov
b71389cbae
avienc: saner default audio codec.
...
libmp3lame if available, ac3 otherwise.
2011-08-22 07:17:19 +02:00
Anton Khirnov
3436c4a368
matroskaenc: saner default codecs.
...
libvorbis/libx264 for video if available, otherwise ac3/mpeg4.
2011-08-22 07:16:55 +02:00
Kostya Shishkov
ccb919e34b
WavPack demuxer: do not rely on index when timestamp is not in indexed range.
...
This fixes the situation when there are not enough entries in the index
(e.g. on initial seek there's only one index entry in the index) and index
search returns just the last known entry. That causes seeking function just to
seek there instead of trying harder to get at the requested position.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-08-21 12:55:17 +02:00
Kostya Shishkov
5561fe487f
WavPack demuxer: store position of the first block in index.
...
Currently for multichannel audio position for the last block position is
stored in index (and used for seeking), which is obviously not correct.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-08-21 12:54:35 +02:00
Sven Hesse
c6c6c1aaa6
add XMV demuxer
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-08-17 15:04:37 +02:00
Kostya Shishkov
a43b1e74e2
rmdec: parse FPS in RealMedia properly
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-08-17 15:00:42 +02:00
Kostya Shishkov
48ce8b8da7
Use parsers for RealVideo 3/4 to determine correct PTS
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-08-17 15:00:42 +02:00
Kostya Shishkov
7c1f6df4b5
rmdec: correct DTS calculation in RealMedia container.
...
First, container stores only DTS and not PTS as it was believed.
Second, multiple frames in a packet store timestamp instead of position
after the frame length.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-08-17 15:00:42 +02:00
Anton Khirnov
a3f2f766af
matroskaenc: vertical alignment.
2011-08-16 20:24:20 +02:00
Anton Khirnov
15c14ce6b2
matroskaenc: implement query_codec()
2011-08-16 20:24:20 +02:00
Anton Khirnov
48f9e457ea
lavf: add avformat_query_codec().
...
It allows to check if a given codec can be written into a container.
2011-08-16 20:24:20 +02:00
Luca Barbato
7f5bf4fbaf
flvenc: use int64_t to store offsets
...
Metadata currently is written only at the start of the file in normal
cases, when transcoding from a rtmp source metadata could be
written later and the offset recorded can exceed 32bit.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-08-16 20:24:20 +02:00
Diogo Franco
f1f298cd32
Do not write ID3v1 tags by default
...
ID3v1 are legacy tags with several limitations; furthermore
avconv/ffmpeg writes the tags in UTF-8 which probably has near-0
software support.
Add a -write_id3v1 option to be able to turn it on; disabled by default.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-08-16 20:24:20 +02:00
Alex Converse
d8b999e2d0
mpegts: log into an AVFormatContext rather than MpegTSContext.
...
MpegTSContext's AVClass member can be NULL.
2011-08-16 11:09:39 -07:00
Anton Khirnov
eb97dbb05a
movenc: change AV_LOG_INFO to AV_LOG_WARNING for some warnings
2011-08-16 10:34:17 +02:00
Anton Khirnov
c14fe6bc99
lavf,lavd: remove all usage of AVFormatParameters from demuxers.
...
AVFormatParameters are converted into corresponding private options in
av_open_input_file/stream() compat wrappers, so accessing them from
demuxers is redundant.
2011-08-15 19:59:48 +02:00
Kostya Shishkov
e9fb763611
Remove redundant and dubious video codec detection by its extradata
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-08-15 14:03:01 +02:00
Dustin Brody
2f63440c59
lavf: add support for error_recognition, use it in avidec, and bump minor API version
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-08-12 19:10:22 +02:00
Anton Khirnov
4d58e4cb4c
Rename ffserver to avserver.
2011-08-09 19:56:25 +02:00
Luca Barbato
1bf6cb85be
applehttp: fix variant discard logic
...
The v->ctx is always not NULL now, check for streams presence to
mark the read_header state.
Fixes bug #25 , possibly introduced by 603b8bc
2011-08-04 11:21:33 +02:00
Zohar Kelrich
73e8e8dbf9
lavf: Add an option to discard corrupted frames
...
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-08-02 02:52:41 +02:00
Zohar Kelrich
5081514269
mpegts: Mark wrongly-sized packets as corrupted
...
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-08-02 02:52:41 +02:00
Zohar Kelrich
cdb9884a63
mpegts: Move scan test to handle_packets
...
This fixes an issue where packets which start being read
while reading the header stick around after a seek.
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-08-02 02:52:27 +02:00
Zohar Kelrich
ce9e31655e
mpegts: Mark corrupted packets
...
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-08-02 02:43:22 +02:00
Zohar Kelrich
c64f80b0e8
mpegts: Reset continuity counter on seek
...
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-08-02 02:43:22 +02:00
Zohar Kelrich
8b9df201df
mpegts: Fix for continuity counter
...
Make continuity counter respect discontinuity flag
and null packets. Unpack the adaptation_field_control field.
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-08-02 02:43:22 +02:00
Zohar Kelrich
be9c00615b
mpegts: Silence "can't seek" warning on unseekable
...
Do not try to seek when we already know we are not allowed to.
Silences warning that always happens when streaming.
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2011-08-02 02:43:21 +02:00
Alex Converse
1f6f58d585
mxfdec: Include FF_INPUT_BUFFER_PADDING_SIZE when allocating extradata.
...
This prevents out of bounds reads when extradata is being decoded.
2011-07-29 16:03:53 -07:00
Alex Converse
5ef953e84f
probe: Fix insane flow control.
...
A loop control variable was shadowed inside the loop and never updated.
2011-07-29 09:29:44 -07:00
Mike Williams
298c4e3c52
mpegts: remove invalid error check
...
mpegts_read_header is used by both mpegts and mpegtsraw, so this
erro check is no longer valid.
Signed-off-by: Mike Williams <mike@mikebwilliams.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-29 08:48:33 +02:00
Anton Khirnov
3c7fa664af
lavf: add forgotten attribute_deprecated to av_find_stream_info()
2011-07-28 17:13:14 +02:00
Diego Biurrun
ab3d241be1
ape: adjust some printf format strings to correctly match argument types
2011-07-26 00:34:52 +02:00
Alex Converse
505345ed5d
riff: Add mpgv MPEG-2 fourcc
...
Supported by mplayer and seen in the wild.
2011-07-22 10:39:13 -07:00
Diego Biurrun
4cc843facd
rtp: remove disabled code
2011-07-21 23:03:10 +02:00
Thierry Foucu
73c0dd939d
mov: add clcp type track as Subtitle stream.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-07-21 09:34:41 -07:00
Chris Evans
69619a13c3
matroskadec: fix integer underflow if header length < probe length.
...
This fixes a crash with specifically crafted files.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-07-19 18:06:06 -07:00
Diego Biurrun
76e25dbca6
rtsp: remove disabled code
2011-07-18 18:22:02 +02:00
Diego Biurrun
6eaaf8da88
gxfenc: place variable declarations before statements
...
libavformat/gxfenc.c:409: warning: ISO C90 forbids mixed declarations and code
2011-07-17 23:59:20 +02:00
Stefano Sabatini
25dfda7f31
lavf: rename enc variable in utils.c:has_codec_parameters()
...
Rename it to "avctx", the old name was confusing as the function is
used also with decoder contexts.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-17 06:58:53 +02:00
Anton Khirnov
dfc2c4d900
lavf: use designated initialisers for all (de)muxers.
...
It's more readable and less prone to breakage.
2011-07-17 06:58:37 +02:00
Anton Khirnov
6270995667
wav: remove a use of deprecated AV_METADATA_ macro
2011-07-17 06:58:29 +02:00
Anton Khirnov
412b4367c5
rmdec: remove useless ap parameter from rm_read_header_old()
2011-07-17 06:58:29 +02:00
Anton Khirnov
d3bb71914b
lavf/utils: drop av_ prefixes from static functions.
2011-07-15 20:27:43 +02:00
Anton Khirnov
c3bec4cd13
avio: don't replicate avio_alloc_context functionality.
2011-07-15 20:04:46 +02:00
Diego Biurrun
bee6d2fd76
doxygen: replace @sa tag by the more readable but equivalent @see
2011-07-15 02:01:22 +02:00
Diego Biurrun
ad4cd0c2a4
doxygen: use Doxygen markup for authors and web links where appropriate
2011-07-15 02:01:21 +02:00
Diego Biurrun
6168781f70
doxygen: do not include license boilerplate in Doxygen documentation
2011-07-15 00:52:09 +02:00
Diego Biurrun
f6f95d4e49
doxygen: consistently place brief description
2011-07-14 20:49:37 +02:00
Diego Biurrun
ec679eb453
doxygen: place empty line between brief description and detailed description
...
Without it, Doxygen cannot separate them into different sections.
2011-07-14 20:49:08 +02:00
Diego Biurrun
5a819c5e23
avformat_open_input(): Add braces to shut up gcc warning.
...
libavformat/utils.c:599: warning: missing braces around initializer
libavformat/utils.c:599: warning: (near initialization for ‘ap.time_base’)
2011-07-14 20:45:26 +02:00
Anton Khirnov
f2f523fffc
Add an APIChanges entry and bump minor versions for recent changes.
2011-07-14 14:16:16 +02:00
Diego Biurrun
96c1e6d40d
doxygen: Make sure parameter names match between .c and .h files.
2011-07-14 04:09:49 +02:00
Anton Khirnov
e358f7ee90
lavf: fix invalid reads in avformat_find_stream_info()
2011-07-14 03:41:24 +02:00
Anton Khirnov
13551ad1e3
lavf: fix segfault in av_open_input_stream()
...
ic is NULL in case of error.
2011-07-13 20:49:31 +02:00
Jindrich Makovicka
575c38d76c
mpegtsenc: set Random Access indicator on keyframe start packets
...
Signed-off-by: Jindrich Makovicka <jindrich.makovicka@nangu.tv>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-13 20:49:26 +02:00
Alex Converse
a58858d60d
lavf: Cleanup try_decode_frame() logic.
...
This fixes AAC playback in ffplay.
2011-07-13 10:39:06 -07:00
Diego Biurrun
191c5f8ff3
build: move tests/seek_test.c to libavformat and reuse generic build rules
2011-07-13 13:27:15 +02:00
Kostya Shishkov
2c4d7bf008
mxfenc: include needed header for ff_iso8601_to_unix_time() prototype
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-07-13 12:24:28 +01:00
Anton Khirnov
6379900c53
Add a check for strptime().
...
It's an XSI extension, not available on some supported systems.
2011-07-13 12:14:27 +02:00
Anton Khirnov
001d668d40
lavf: factor out conversion of ISO8601 string to unix time
2011-07-13 12:14:25 +02:00
Tomas Härdin
b21e6b707f
wav: parse 'bext' metadata
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-13 11:57:51 +02:00
Tomas Härdin
67b1761fcb
wav: keep parsing until EOF if the input is seekable and we know the size of the data tag
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-13 11:57:51 +02:00
Tomas Härdin
90f2ee8cb4
wav: Refactor the tag checking into a switch statement
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-13 11:57:51 +02:00
Tomas Härdin
1cf18de982
wav: make sure neither data_size nor sample_count is negative.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-13 11:57:51 +02:00
Tomas Härdin
7f84055e2d
wav: refactor the 'fmt ' tag search and parsing.
...
Moving the search and parsing of the 'fmt ' info the main loop of
wav_read_header() allows tags that precede it to be parsed. Creating
wav_parse_fmt_tag() makes wav_read_header() easier to read.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-13 11:57:51 +02:00
Benjamin Larsson
a4ad943860
wav: add an option for writing BEXT chunk
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-13 11:57:47 +02:00
Kostya Shishkov
0cdd1208be
Musepack SV7: try to read files without number of frames provided
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-13 10:36:55 +02:00
Anton Khirnov
5f847bf61d
lavf: deprecate AVFormatContext.timestamp
...
It's replaced by 'creation_time' metadata tag.
2011-07-12 15:30:10 +02:00
Anton Khirnov
93ade976c8
matroskaenc: make SSA default subtitle codec.
...
It's a better format and we have an encoder for it, so it doesn't fail
like CODEC_ID_TEXT.
2011-07-12 15:25:53 +02:00
Chris Evans
4cc3467e7a
oggdec: prevent heap corruption.
...
Specifically crafted samples can reinit ogg->streams[] while
reading samples, and thus we should not cache old pointers since
these may no longer be valid.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-07-11 16:37:11 -07:00
Jindrich Makovicka
8923cfa328
mpegts: fix Continuity Counter error detection
...
According to MPEG-TS specs, the continuity_counter shall not be
incremented when the adaptation_field_control of the packet
equals '00' or '10'.
Signed-off-by: Jindrich Makovicka <jindrich.makovicka@nangu.tv>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-11 15:24:13 +02:00
Anton Khirnov
fdb94444be
matroskadec: fix stupid typo (!= -> ==)
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-07-10 22:04:03 +01:00
Mans Rullgard
28e1c97916
build: rework rules for things in the tools dir
...
Declaring tools associated with each library in their respective
makefiles allows these tools to easily depend on the correct
prerequisites and link against the libs they need.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-07-10 21:13:38 +01:00
Anton Khirnov
f47ac3c6ca
matroskadec: reindent
2011-07-10 18:51:30 +02:00
Aaron Colwell
31ad14c21e
matroskadec: defer parsing of cues element until we seek.
...
This decreases startup latency.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-10 18:51:30 +02:00
Anton Khirnov
71a861cf40
lavc: make avcodec_alloc_context3 officially public.
...
Deprecate avcodec_alloc_context/2.
2011-07-10 17:09:28 +02:00
Anton Khirnov
a67c061e0f
lavf: add avformat_find_stream_info()
...
It supports passing options to codecs.
2011-07-10 17:07:05 +02:00
Matthew Hoops
84d098d943
segafilm: add support for videos with cri adx adpcm
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-07-09 07:57:14 -07:00
Tomas Härdin
99fecc64b0
gxf: Fix 25 fps DV material in GXF being misdetected as 50 fps
...
Set DV packet durations using fields_per_frame.
This requires turning gxf_stream_info into the demuxer's context for access to the value in gxf_packet().
Since MPEG-2 seems to work fine this done only for DV.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-09 12:32:22 +02:00
Anton Khirnov
bda168d2b0
mp3enc: write a xing frame containing number of frames in the file
2011-07-08 22:47:24 +02:00
Anton Khirnov
1c6d2b7df0
lavf: update AVStream.nb_frames when muxing.
2011-07-08 22:13:52 +02:00
Anton Khirnov
d31e3f7ccc
gif: add loop private option.
...
Deprecate AVFormatContext.loop_output.
2011-07-08 18:39:56 +02:00
Anton Khirnov
6002fdef5e
img2: add loop private option.
...
Deprecate AVFormatContext.loop_input.
2011-07-08 18:39:28 +02:00
Alex Converse
7f01a4192c
adts: Fix PCE copying.
...
Parse the extension flag bit when reading the MPEG4 AudioSpecificConfig.
This has nothing to do with SBR/PS contradictory to what was noted when it was removed.
2011-07-06 22:38:59 -07:00
Anton Khirnov
5e8d2e337e
lavf: deprecate AVStream.quality.
...
AVStream is no place for it and it's unused outside of ffmpeg anyway.
2011-07-06 20:10:41 +02:00
Kostya
df64da3b1e
bink: pass Bink version to audio decoder through extradata instead of codec_tag.
...
This is needed because not all players (e.g. MPlayer) are able to distinguish
two different Bink audio decoders when codec_tag is set.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-06 14:52:02 +02:00
Diego Biurrun
d3f751e603
Add some missing mathematics.h #includes for av_rescale().
2011-07-05 20:16:38 +02:00
Clément Bœsch
4d5e7ab5c4
mxfenc: fix ignored drop flag in binary timecode representation.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-07-05 08:04:44 -07:00
Nicolas George
9cec1bbd14
ogg: propagate return values and return more meaningful error values
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-07-04 15:59:58 +02:00
Reimar Döffinger
0a94020b5b
oggdec: Abort Ogg header parsing when encountering a data packet.
...
Fixes Bugzilla #11 .
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-07-04 12:54:27 +02:00
Clément Bœsch
19b6127365
mxfenc: small typo fix
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-07-04 12:54:26 +02:00
Mans Rullgard
abc78a5a7c
Do not include log.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-07-03 21:42:07 +01:00
Mans Rullgard
0ebcdf5cda
Do not include mathematics.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-07-03 21:42:06 +01:00
Mans Rullgard
ee8aecd23a
Do not include intfloat_readwrite.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-07-03 21:42:06 +01:00
Mans Rullgard
add41decd9
Remove return statements following infinite loops without break
...
These statements cannot be reached and are thus not needed.
This removes a number of compiler warnings.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-07-03 21:39:07 +01:00
Diego Biurrun
f75e3da535
RTSP: Doxygen comment cleanup
...
Do not use Doxygen for comments that apply to specific implementation
details; merge some duplicated Doxygen comment blocks.
2011-07-03 22:33:22 +02:00
Diego Biurrun
c81a2b9b4f
doxygen: Escape '\' in Doxygen documentation.
2011-07-03 21:44:04 +02:00
Diego Biurrun
24c9babaaf
doxygen: Fix parameter names to match the function prototypes.
2011-07-03 18:30:02 +02:00
Diego Biurrun
91c9aa0941
Move some conditionally used code below the appropriate #ifdef.
2011-07-03 18:30:01 +02:00
Mans Rullgard
c9403419b2
avidec: simplify convoluted flow in avi_load_index()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-07-03 03:16:00 +01:00
Mans Rullgard
b27565b143
Remove statements immediately following unconditional jumps
...
This removes a number of compiler warnings.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-07-03 03:15:53 +01:00
Reinhard Tartler
12489443de
libavformat: Add an example how to use the metadata API
...
Also include it into the doxygen documentation
2011-07-02 13:52:29 +02:00
Reinhard Tartler
21a19b7912
doxygen: Prefer member groups over grouping into modules
...
Before this, almost all module groups have been used for grouping functions
and fields in structures semantically. This causes them to not appear
properly in the file documentation and needlessly clutters up the "Modules"
index.
Additionally, this commit streamlines some spelling and appearances.
2011-07-02 13:52:29 +02:00
Reinhard Tartler
1a53a438dc
avformat: doxify the Metadata API
...
convert the comment that documents the metadata API to use
the doxygen markup
2011-07-02 10:16:53 +02:00
Anton Khirnov
4f731c4429
lavf: restore old behavior for custom AVIOContex with an AVFMT_NOFILE format.
...
av_open_input_stream used to allow this, even though it makes no sense.
Make it just print a warning instead of failing, thus restoring
compatibility.
Note that avformat_open_input() will still reject this combination.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-07-02 08:41:57 +02:00
Anton Khirnov
5001d6ef4a
lavf: use the correct pointer in av_open_input_stream().
2011-07-02 08:41:57 +02:00
Alex Converse
d3f610c186
avidec: infer absolute vs relative index from first packet
2011-07-01 16:08:21 -07:00
Alex Converse
8b84af7488
avidec: Factor out the sync fucntionality.
2011-07-01 10:27:06 -07:00
John Stebbins
cdc2c1c576
matroskadec: matroska_read_seek after after EBML_STOP leads to failure.
...
EBML_STOP leaves matroska->current_id set. Then matroska_read_seek changes
the stream position without resetting current_id. The next
matroska_parse_cluster fails due to calculation of incorrect pos. So clear
current_id when avio_seek happens in matroska_read_seek.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-07-01 08:59:26 -07:00
Reinhard Tartler
d7537a6fce
doxygen: Include libavcodec and libavformat examples into the documentation
2011-06-30 21:19:16 +02:00
Benjamin Larsson
dafaef2fe1
Add support for aac streams in mp4/mov without extradata.
2011-06-30 10:10:26 -07:00
Martin Storsjö
5d62d0b114
udp: Fix a compilation warning
...
This fixes this compilation warning, by making endptr a non-const
pointer, as required by strtol:
In function ‘udp_open’:
warning: passing argument 2 of ‘strtol’ from incompatible pointer type
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-30 12:04:46 +03:00
Ami Fischman
5dd514af93
matroskadec: forward parsing errors to caller.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-06-29 15:27:55 -07:00
Ami Fischman
59ca3955fb
av_find_stream_info: simplify EAGAIN handling.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-06-29 15:27:55 -07:00
Ronald S. Bultje
9ed6cbc3ee
ogg: fix double free when finding length of small chained oggs.
...
ogg_save() copies streams[], but doesn't keep track of free()'ed
struct members. Thus, if in between a call to ogg_save() and
ogg_restore(), streams[].private was free()'ed, this would result
in a double free -> crash, which happened when e.g. playing small
chained ogg fragments.
2011-06-29 09:45:52 -07:00
Mans Rullgard
57b4a3dd2b
build: include sub-makefiles using full path instead of symlinks
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-06-28 18:15:19 +01:00
Kostya Shishkov
cb7b55b096
wavpack: skip blocks with no samples
...
These blocks don't report audio stream parameters and they are not needed
for decoding.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-06-28 16:41:26 +01:00
Diego Biurrun
a6213f3dce
build: Remove redundant config.mak includes from subdirectory Makefiles.
...
Calling Make from subdirectories is not supported and config.mak has
multiple inclusion guards anyway, so the top-level include is enough.
2011-06-25 13:02:51 +02:00
Can Wu
fc66e23154
udp: Receive on the remote port number, if no local port is set
...
For a unicast udp stream to localhost:1234, currently
ffplay udp://:1234?localport=1234
works, but
ffplay udp://:1234
doesn't work.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-24 18:27:02 +03:00
Diego Biurrun
adbfc605f6
doxygen: Consistently use '@' instead of '\' for Doxygen markup.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-06-24 00:37:49 +02:00
Martin Storsjö
9abbe8cc13
Use av_printf_format to check the usage of printf style functions
...
This helps catching cases where the format string doesn't
match what is passed in, or injection bugs where user data
is passed in as format string.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-23 20:17:46 +03:00
Diego Biurrun
35fa0d4758
nsvdec: Propagate error values instead of returning 0 in nsv_read_header().
...
This eliminates a warning about a set-but-unused variable.
2011-06-23 13:47:16 +02:00
Carl Eugen Hoyos
53d5cd2c82
mov: Support Digital Voodoo SD 8 Bit and DTS codec identifiers.
2011-06-21 21:39:00 +02:00
ami_stuff
7ac639654f
mov: Support R10g codec identifier.
2011-06-21 21:38:59 +02:00
Kamil Nowosad
a304a83362
riff/img2: Add JPEG 2000 codec IDs.
2011-06-21 21:38:59 +02:00
ami_stuff
2ea1ca1714
riff: Add DAVC fourcc.
...
This fourcc is used by the "mpegable AVC" codec and files encoded with
this codec decode correctly with our H.264 decoder.
2011-06-21 21:38:58 +02:00
Carl Eugen Hoyos
682a20114e
riff: Add M263, XVIX, MMJP, CDV5 fourccs.
2011-06-21 21:38:53 +02:00
ami_stuff
d352df0931
rawvideo: Support auv2 fourcc.
2011-06-21 21:33:58 +02:00
Justin Ruggles
e6c52cee54
Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().
...
av_get_bits_per_sample_fmt() is deprecated.
2011-06-20 18:56:06 -04:00
Yusuke Nakamura
ae88e9cf99
mov: Fix empty edit detection.
2011-06-19 18:15:56 -07:00
Ronald S. Bultje
dbafb0e06f
lavf: prevent crash in av_open_input_file() if ap == NULL.
...
Needed for proper behaviour in our old API compatibility code.
2011-06-18 17:51:10 -04:00
Anton Khirnov
84bd2b4bf5
lavf: add a forgotten NULL check in convert_format_parameters().
2011-06-18 17:42:44 +02:00
Anton Khirnov
7c44d716e7
Add minor bumps and APIChanges entries for lavf private options.
2011-06-16 20:24:58 +02:00
Anton Khirnov
25de5958c8
lavf: add avformat_write_header() as a replacement for av_write_header().
...
It supports more convenient setting of AVOptions.
2011-06-16 20:24:56 +02:00
Anton Khirnov
603b8bc2a1
Deprecate av_open_input_* and remove their uses.
...
Deprecate the last remaining member of AVFormatParameters.
2011-06-16 20:24:56 +02:00
Anton Khirnov
05e84c95c7
lavf: add avformat_open_input() as a replacement for av_open_input_*
...
Add support for demuxer private options.
2011-06-16 20:24:56 +02:00
Diego Biurrun
1d076f46a0
rtpenc_latm: Consistently use "Libav" in license boilerplate.
2011-06-16 17:13:34 +02:00
Martin Storsjö
d840733937
rtsp: Don't pass string pointer as format string to ff_url_join
...
In this case, the string that was passed couldn't contain
user-defined data and thus there was no risk for injection
bugs, but it's safer this way, if we later change the
content of the options string.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-16 17:40:28 +03:00
Kirill Zorin
6095388812
mmsh: fixed printf injection bug in mmsh request
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-16 17:40:21 +03:00
Diego Biurrun
35bdaf3d42
utils: Drop pointless '#if 1' preprocessor directive.
2011-06-13 23:02:28 +02:00
Carl Eugen Hoyos
8d0786ec6d
wav: remove an invalid free().
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-06-13 20:47:06 +02:00
Michael Niedermayer
a8fd2f4e02
lavf: initialise reference_dts in av_estimate_timings_from_pts.
...
Fixes issue2437.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-06-13 20:46:06 +02:00
Peter Ross
a31d4b3a99
img2: add .dpx to the list of supported file extensions.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-06-13 20:43:29 +02:00
Diego Biurrun
919d7a345a
Replace DEBUG_SEEK/DEBUG_SI + av_log combinations by av_dlog.
2011-06-10 19:12:14 +02:00
Kieran Kunhya
f74e5b76b1
adts: Adjust frame size mask to follow the specification.
...
This fixes ADTS detection for at least one sample.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2011-06-10 18:41:04 +02:00
Martin Storsjö
d16cccac98
movenc: Add RTP muxer/hinter options
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-10 10:52:32 +03:00
Martin Storsjö
f3f82296a4
movenc: Pass the RTP AVFormatContext to the SDP generation
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-10 10:52:25 +03:00
Martin Storsjö
e2e29c6247
rtspenc: Add RTP muxer options
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-10 10:52:22 +03:00
Martin Storsjö
6cf09bb7ef
rtspenc: Add an AVClass for setting muxer specific options
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-10 10:50:41 +03:00
Martin Storsjö
ff0824f72c
rtpenc_chain: Pass the rtpflags options through to the chained muxer
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-10 10:50:23 +03:00
Martin Storsjö
635fac9af1
rtpenc: Declare the rtp flags private AVOptions in rtpenc.h
...
This allows other muxers that chain a RTP muxer to declare
the same options easily.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-10 10:50:08 +03:00
Martin Storsjö
9c434ce826
sdp: Reindent after the previous commit
...
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-10 10:49:55 +03:00
Juan Carlos Rodriguez
0832122880
rtpenc: MP4A-LATM payload support
...
This is enabled with an AVOption on the RTP muxer. The SDP
generator looks for a latm flag in the rtpflags field.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-10 10:49:20 +03:00
Martin Storsjö
0558e266a2
sdp: Allow passing an AVFormatContext to the SDP generation
...
Options from the AVFormatContext can be read for modifying
the generated SDP.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-10 10:45:22 +03:00
Yusuke Nakamura
f33a6a22b4
mov: Fix wrong timestamp generation for fragmented movies that have time offset caused by the first edit list entry.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-06-10 09:06:02 +02:00
Stefano Sabatini
996bbdbf1f
lavf: make compute_pkt_fields2() return meaningful error values
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-06-09 23:00:11 +02:00
Reimar Döffinger
4654420410
matroskadec: set timestamps for RealAudio packets.
...
Improves seeking in ffplay with
http://samples.mplayerhq.hu/Matroska/RA_missing_timestamps.mkv
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-06-09 22:53:17 +02:00
Alex Converse
85e9e3a9fa
movdec: Add support for the 'wfex' atom.
...
The 'wfex' is just a Microsoft WaveFormatEx struct.
2011-06-09 10:14:32 -07:00
Alex Converse
ed8a50068c
riff: Fix potential memleak.
...
Make ff_get_wav_header() free existing extradata before allocing a new
buffer.
2011-06-09 10:12:50 -07:00
Etienne Buira
a71bcd1a7f
crypto: Use av_freep instead of av_free
...
This fixes a potential double free.
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-06-08 23:41:53 +03:00
Anton Khirnov
dbaba52ed2
lavf: don't try to free private options if priv_data is NULL.
...
This might happen if there was an error before priv_data was allocated
and result in segfault.
2011-06-08 19:51:31 +02:00
Diego Biurrun
5bd6ec6d59
options: Add missing braces around struct initializer.
...
This fixes the warning:
libavformat/options.c:62:1: warning: missing braces around initializer [-Wmissing-braces]
2011-06-08 15:01:02 +02:00
Diego Biurrun
b7847a3f2e
mov: Remove leftover crufty debug statement with references to a local file.
2011-06-08 12:01:41 +02:00
Anton Khirnov
d2d67e424f
Remove all uses of now deprecated metadata functions.
2011-06-08 07:43:45 +02:00
Anton Khirnov
d9f80ea2a7
Move metadata API from lavf to lavu.
...
Rename it to AVDictionary, since it will be used as such. Tags
documentation and metadata conversion API is lavf-specific, so remains
there.
2011-06-08 07:43:45 +02:00
Diego Biurrun
ac4a854811
Remove some non-compiling debug messages.
2011-06-08 00:45:47 +02:00
Diego Biurrun
02a8d43adf
Replace some av_log/printf + #ifdef combinations by av_dlog.
2011-06-07 13:20:58 +02:00
Diego Biurrun
1f6b9cc31d
Replace some nonstandard DEBUG_* preprocessor directives by plain DEBUG.
2011-06-07 13:20:58 +02:00
Diego Biurrun
d7cf5639e7
Replace some printf instances in debug code by av_log.
2011-06-07 13:20:57 +02:00
Diego Biurrun
dc25d79f49
Drop unnecessary directory prefixes from #include directives.
2011-06-07 10:31:26 +02:00
Luca Barbato
0e28e9ca8f
flvenc: propagate error properly
...
avio_flush can fail, in particular when used with the rtmp/librtmp
protocol.
2011-06-06 10:53:19 -05:00
Anton Khirnov
b2592ea42c
lavf: deprecate AVFormatParameters.time_base.
2011-06-06 06:46:10 +02:00