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>
14 years ago
Diego Biurrun
76e25dbca6
rtsp: remove disabled code
14 years ago
Diego Biurrun
6eaaf8da88
gxfenc: place variable declarations before statements
...
libavformat/gxfenc.c:409: warning: ISO C90 forbids mixed declarations and code
14 years ago
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>
14 years ago
Anton Khirnov
dfc2c4d900
lavf: use designated initialisers for all (de)muxers.
...
It's more readable and less prone to breakage.
14 years ago
Anton Khirnov
6270995667
wav: remove a use of deprecated AV_METADATA_ macro
14 years ago
Anton Khirnov
412b4367c5
rmdec: remove useless ap parameter from rm_read_header_old()
14 years ago
Anton Khirnov
d3bb71914b
lavf/utils: drop av_ prefixes from static functions.
14 years ago
Anton Khirnov
c3bec4cd13
avio: don't replicate avio_alloc_context functionality.
14 years ago
Diego Biurrun
bee6d2fd76
doxygen: replace @sa tag by the more readable but equivalent @see
14 years ago
Diego Biurrun
ad4cd0c2a4
doxygen: use Doxygen markup for authors and web links where appropriate
14 years ago
Diego Biurrun
6168781f70
doxygen: do not include license boilerplate in Doxygen documentation
14 years ago
Diego Biurrun
f6f95d4e49
doxygen: consistently place brief description
14 years ago
Diego Biurrun
ec679eb453
doxygen: place empty line between brief description and detailed description
...
Without it, Doxygen cannot separate them into different sections.
14 years ago
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’)
14 years ago
Anton Khirnov
f2f523fffc
Add an APIChanges entry and bump minor versions for recent changes.
14 years ago
Diego Biurrun
96c1e6d40d
doxygen: Make sure parameter names match between .c and .h files.
14 years ago
Anton Khirnov
e358f7ee90
lavf: fix invalid reads in avformat_find_stream_info()
14 years ago
Anton Khirnov
13551ad1e3
lavf: fix segfault in av_open_input_stream()
...
ic is NULL in case of error.
14 years ago
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>
14 years ago
Alex Converse
a58858d60d
lavf: Cleanup try_decode_frame() logic.
...
This fixes AAC playback in ffplay.
14 years ago
Diego Biurrun
191c5f8ff3
build: move tests/seek_test.c to libavformat and reuse generic build rules
14 years ago
Kostya Shishkov
2c4d7bf008
mxfenc: include needed header for ff_iso8601_to_unix_time() prototype
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
6379900c53
Add a check for strptime().
...
It's an XSI extension, not available on some supported systems.
14 years ago
Anton Khirnov
001d668d40
lavf: factor out conversion of ISO8601 string to unix time
14 years ago
Tomas Härdin
b21e6b707f
wav: parse 'bext' metadata
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
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>
14 years ago
Tomas Härdin
90f2ee8cb4
wav: Refactor the tag checking into a switch statement
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Tomas Härdin
1cf18de982
wav: make sure neither data_size nor sample_count is negative.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
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>
14 years ago
Benjamin Larsson
a4ad943860
wav: add an option for writing BEXT chunk
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Kostya Shishkov
0cdd1208be
Musepack SV7: try to read files without number of frames provided
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Anton Khirnov
5f847bf61d
lavf: deprecate AVFormatContext.timestamp
...
It's replaced by 'creation_time' metadata tag.
14 years ago
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.
14 years ago
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>
14 years ago
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>
14 years ago
Anton Khirnov
fdb94444be
matroskadec: fix stupid typo (!= -> ==)
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
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>
14 years ago
Anton Khirnov
f47ac3c6ca
matroskadec: reindent
14 years ago
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>
14 years ago
Anton Khirnov
71a861cf40
lavc: make avcodec_alloc_context3 officially public.
...
Deprecate avcodec_alloc_context/2.
14 years ago
Anton Khirnov
a67c061e0f
lavf: add avformat_find_stream_info()
...
It supports passing options to codecs.
14 years ago
Matthew Hoops
84d098d943
segafilm: add support for videos with cri adx adpcm
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
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>
14 years ago
Anton Khirnov
bda168d2b0
mp3enc: write a xing frame containing number of frames in the file
14 years ago
Anton Khirnov
1c6d2b7df0
lavf: update AVStream.nb_frames when muxing.
14 years ago
Anton Khirnov
d31e3f7ccc
gif: add loop private option.
...
Deprecate AVFormatContext.loop_output.
14 years ago
Anton Khirnov
6002fdef5e
img2: add loop private option.
...
Deprecate AVFormatContext.loop_input.
14 years ago
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.
14 years ago
Anton Khirnov
5e8d2e337e
lavf: deprecate AVStream.quality.
...
AVStream is no place for it and it's unused outside of ffmpeg anyway.
14 years ago