Stefano Sabatini
8d953175d4
wav: fix various printf warnings related to wrong argument type
14 years ago
Stefano Sabatini
e9f4001a30
wav: propagate ff_get_wav_header() error code in w64_read_header()
...
Alos fix warning:
wav.c: In function ‘w64_read_header’:
wav.c:546: warning: ‘ret’ may be used uninitialized in this function
14 years ago
Kamil Nowosad
83654c7b1b
Add Kamil Nowosads j2k code.
...
This needs work but it should not rot in soc svn.
14 years ago
Aurelien Jacobs
4c509fe305
matroska: cleanup handling of video stereo mode
14 years ago
Stefano Sabatini
2ef241c09f
oggdec: use av_dlog()
...
Simplify.
14 years ago
Michael Niedermayer
f455f46455
movdec: dont divide by zero when stts_data[0].duration = 0.
...
Fixes ticket223
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
5045786b7e
lavf: fix style for avformat_alloc_output_context2()
...
More consistent/readable.
14 years ago
Stefano Sabatini
5ecdfd008b
lavf: deprecate avformat_alloc_output_context() in favor of avformat_alloc_output_context2()
...
The new function accepts a slightly more intuitive order of paramters,
and returns an error code, thus allowing applications to report a
meaningful error message.
14 years ago
Kirill Gavrilov
e6ec9212c5
matroska: switch stereo mode from int to string and add support in the demuxer too
14 years ago
Kirill Gavrilov
69a83da5d4
matroska: cosmetics
14 years ago
Alok Ahuja
8dd12b077b
Create a stereo_mode metadata tag to specify the stereo 3d video layout using the StereoMode tag in a matroska/webm video track.
14 years ago
Diego Biurrun
153382e1b6
multiple inclusion guard cleanup
...
Add missing multiple inclusion guards; clean up #endif comments;
add missing library prefixes; keep guard names consistent.
14 years ago
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>
14 years ago
Can Wu
9e2dabed4a
avio: check AVIOContext malloc failure
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Michael Niedermayer
5c08c7b215
Add a flag to disable side data merging.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
94eadee7ef
Merge/split side data.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
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>
14 years ago
Martin Storsjö
6efb29686f
Reindent
14 years ago
Martin Storsjö
65a4d8e5a7
rtpenc_chain: Pass the MP4A_LATM flag to chained muxers
14 years ago
Juan Carlos Rodriguez
ef409645f0
rtpenc: MP4A-LATM payload support
14 years ago
Martin Storsjö
bd61b2a1ca
movenc: Pass AVFormatContext flags to the SDP generation
14 years ago
Martin Storsjö
abe9363889
sdp: Allow passing AVFormatContext flags to the SDP generation
14 years ago
Diego Biurrun
7ed0a77ff4
Remove silly insults from avformat_version() Doxygen documentation.
14 years ago
Mans Rullgard
b122c65107
asfdec: add missing #include for av_bswap32()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Niedermayer
8529f9b36b
av_find_stream_info: Print more details about max anaylize duration failures.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Tomas Härdin
7e5cb2ef51
Parse 'bext' metadata in the wav demuxer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Tomas Härdin
40612f2601
Cosmetics: indent
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Tomas Härdin
6629dbd299
Keep parsing wav until EOF if the input is seekable and we know the size of the data tag
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Tomas Härdin
a06d238e8c
Refactor the tag checking into a switch statement
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Tomas Härdin
93df511ec7
Use avio_tell() instead of url_ftell()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
JULIAN GARDNER
8146d16b60
cleaned up the udp.c, removed some variables and an av_log
14 years ago
Stefano Sabatini
64be0d1eda
id3v2: prevent unsigned integer overflow in ff_id3v2_parse()
...
In ff_id3v2_parse(), prevent unsigned integer overflow if data length
indicator is skipped and tlen is < 4.
Fix crash decoding file Allaby_cut.mp3, fix trac issue #182 .
14 years ago
Stefano Sabatini
b69e5ee902
id3v2: add @file doxy and link to format documentation
14 years ago
Anton Khirnov
29e3489602
lavf: remove duplicate assignment in avformat_alloc_context.
...
AVClass is already initialized in avformat_get_context_defaults.
14 years ago
Anton Khirnov
f0029cbcf6
lavf: use designated initializers for AVClasses.
14 years ago
Tomas Härdin
3d922c8462
Make sure neither data_size nor sample_count is negative
14 years ago
Tomas Härdin
cc1ca9e534
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.
14 years ago
Alex Converse
13220b1856
flvdec: clenup debug code
14 years ago
Uoti Urpala
29fa570d0c
asfdec: fix possible overread on broken files.
14 years ago
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.
14 years ago
Vladimir Pantelic
b58bc17cf7
asfdec: reindent after previous commit c7bd5ed
14 years ago
Vladimir Pantelic
c7bd5edae4
asfdec: fallback to binary search internally
...
lavf will do that anyway in case seek by index fails
14 years ago
Nicolas George
bec994dff2
Ogg demuxer: give meaningful error codes and warnings.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
14 years ago
Michael Niedermayer
e6e7ba0ce3
Add some forgotten const to function arguments in libavfilter & libavformat.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
f2962ac8ad
Write channel_layout for multichannel aif files.
14 years ago
Carl Eugen Hoyos
6d721f714e
Fix ff_mov_write_chan() so it can be used by other muxers.
14 years ago
Carl Eugen Hoyos
d2549ba9df
Fix some mov files with little endian audio (tickets 201 - 203).
14 years ago
Stefano Sabatini
e280a4da2a
iff/8svx: redesign 8SVX demuxing and decoding for handling stereo samples correctly
...
Make the iff demuxer send the whole audio chunk to the decoder as a
single packet, move stereo interleaving from the iff demuxer to the
decoder, and introduce an 8svx_raw decoder which performs
stereo interleaving.
This is required for handling stereo data correctly, indeed samples
are stored like:
LLLLLL....RRRRRR
that is all left samples are at the beginning of the chunk, all right
samples at the end, so it is necessary to store and process the whole
buffer in order to decode each frame. Thus the decoder needs all the
audio chunk before it can return interleaved data.
Fix decoding of files 8svx_exp.iff and 8svx_fib.iff, fix trac issue #169 .
14 years ago
Stefano Sabatini
d8353256a3
iff: compact code setting metadata tags
...
Ease readability.
14 years ago
Stefano Sabatini
34f590b29b
iff: fix bitrate computation for compressed audio stream
14 years ago