Mans Rullgard
0ebcdf5cda
Do not include mathematics.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
c9403419b2
avidec: simplify convoluted flow in avi_load_index()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Alex Converse
d3f610c186
avidec: infer absolute vs relative index from first packet
14 years ago
Alex Converse
8b84af7488
avidec: Factor out the sync fucntionality.
14 years ago
Anton Khirnov
603b8bc2a1
Deprecate av_open_input_* and remove their uses.
...
Deprecate the last remaining member of AVFormatParameters.
14 years ago
Diego Biurrun
919d7a345a
Replace DEBUG_SEEK/DEBUG_SI + av_log combinations by av_dlog.
14 years ago
Anton Khirnov
d2d67e424f
Remove all uses of now deprecated metadata functions.
14 years ago
Diego Biurrun
d7cf5639e7
Replace some printf instances in debug code by av_log.
14 years ago
Mans Rullgard
e65ab9d94f
Remove unused variables
14 years ago
Kostya Shishkov
23f40a0788
read AVI palette from the end of extradata
...
Official AVI specification says that stream header in case of video contains
BITMAPINFO, which is equal to BITMAPINFOHEADER and optional palette. Currently
lavf AVI demuxer thinks otherwise which produces garbage on codecs that have
both palette and extradata (luckily, there are not so many such codecs).
An example of such file is:
http://samples.multimedia.cx/V-codecs/KMVC/baseball1.avi
(IIRC, MSS1 or MSS2 also had such situation but they are still not supported
by lavc).
As a side note, passing palette in extradata as it's been done previously is
not quite correct since proper _extra_ data is surplus bytes in
BITMAPINFOHEADER, not including palette.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Diego Biurrun
6001dad6e2
Replace more FFmpeg references by Libav.
14 years ago
Kostya Shishkov
2d8591c27e
make containers pass palette change in AVPacket
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
14 years ago
Max Horn
ca402f32e3
handle malloc failures in ff_get_wav_header
...
ff_get_wav_header is reading data from a WAVE file and then uses it
(without validation) to malloc a buffer. It then proceeded to read
data into the buffer, without verifying that the allocation succeeded.
To address this, change ff_get_wav_header to return an error if
allocation failed, and adapted all calling code to handle that error.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
14 years ago
Anton Khirnov
8978fedaee
avio: introduce an AVIOContext.seekable field
...
Use it instead of url_is_streamed and AVIOContext.is_streamed.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
45a8a02a41
lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes sense
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
66e5b1df36
avio: deprecate url_feof
...
AVIOContext.eof_reached should be used directly instead.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
76aa876e69
avio: avio_ prefix for url_fsize
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
a2704c9712
avio: add avio_tell macro as a replacement for url_ftell
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
e356fc57a2
lavf: replace all uses of url_fskip with avio_seek
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
6b4aa5dac8
avio: avio_ prefix for url_fseek
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
b7effd4e83
avio: avio_ prefixes for get_* functions
...
In the name of consistency:
get_byte -> avio_r8
get_<type> -> avio_r<type>
get_buffer -> avio_read
get_partial_buffer will be made private later
get_strz is left out becase I want to change it later to return
something useful.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
8d9ac969cb
avio: rename av_alloc_put_byte -> avio_alloc_context for consistency
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
ae628ec1fd
avio: rename ByteIOContext to AVIOContext.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
47fdf00a77
avidec: simplify read_gab2_sub
...
Use avio functions instead of bytestream ones (also drops dependency on
lavc and removes a bunch of warnings).
Drop custom version of avio_get_str16 and use that instead.
Tested on mewmew-ssa.avi sample.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Clément Bœsch
290849e2a4
Remove forgotten if (p) av_free(p) forms
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Luca Barbato
dfd2a005eb
Replace dprintf with av_dlog
...
dprintf clashes with POSIX.1-2008
14 years ago
Diego Elio Pettenò
c6610a216e
Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.
...
This also lists the objects from those two libraries as internal (by adding
the ff_ prefix) so that they can then be hidden via linker scripts.
14 years ago
Mans Rullgard
6081f8c4e2
avidec: make print_tag() a macro and remove related ifdefs
...
The dprintf macro is a no-op if DEBUG is not defined, so there
is no need to guard it here.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Peter Ross
456a70aeb8
add ff_get_bmp_header
...
Originally committed as revision 26091 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Aurelien Jacobs
8ba5bf5a7c
avidec: read some of the Nikon specific tags produced by Nikon cameras
...
Originally committed as revision 25821 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Aurelien Jacobs
73d0e33102
avidec: support non-standard creation_time format
...
Originally committed as revision 25815 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Aurelien Jacobs
d35cdd5719
avidec: trivial simplification regarding av_metadata_set
...
Originally committed as revision 25814 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Aurelien Jacobs
933875a0f5
avidec: export creation_date as metadata
...
Originally committed as revision 25785 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Anton Khirnov
03700d399b
Export metadata in the generic format. Deprecate old conversion API.
...
patch by Anton Khirnov anton _at_ khirnov _dot_ net
Originally committed as revision 25493 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Carl Eugen Hoyos
2b50c4f6cc
Cosmetics: Reindent after r25023.
...
Originally committed as revision 25024 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Andrew Wason
4ed899f2c5
Fix crash when decoding DV in AVI introduced in r24579 (issue 2174).
...
Patch by Andrew Wason, rectalogic rectalogic com
Originally committed as revision 25023 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Aurelien Jacobs
f138fa78a3
100l: av_freep() needs the address of the pointer
...
Originally committed as revision 24613 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
37287d41f4
avidec: demux ASS and SRT tracks out of GAB2 chunks
...
Originally committed as revision 24579 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
bbfb2c8077
avidec : Free packet if dv_produce_packet fails.
...
Originally committed as revision 24281 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
a58e6ceae0
avidec : Free codec context before initializing the chained DV demuxer.
...
Originally committed as revision 24279 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
8fc0162ac4
Add av_ prefix to bswap macros
...
Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
9862f9e149
Disable dshow specific bug emulation for amv files as they arent
...
demuxed by ms dshows buggy demuxer normally.
Originally committed as revision 24012 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
89ac23cd40
Rename block_align variable in the avi demuxer to clearly seperate its purpose
...
from the true block_align.
Originally committed as revision 24011 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
d01144b9d3
Duplicate rounding that MS does in one of their implementations of an avi demuxer.
...
Fixes issue740
Based on patch by Cory Fields theuni-nospam- >xbmc @org
Originally committed as revision 23999 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
8a472821a4
Factorize get_duration() out of 4 places of the avi demuxer.
...
Originally committed as revision 23934 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
0c0fd063dd
Prevent infinite recursion of odml indexes.
...
This fixes a stack overflow.
Originally committed as revision 23925 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
fbfccc0404
Disable non interleaved avi code when there is no index available.
...
Fixes issue1956.
Originally committed as revision 23202 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Thierry Foucu
e1954bb5ca
Do not use pkt->size when it is potentially uninitialized.
...
Patch by Thierry Foucu, tfoucu gmail
Originally committed as revision 23017 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Sebastian Vater
bf29cbc2cc
Change a %2 to &1. Patch by Sebastian Vater <cdgs DOT basty googlemail com>.
...
Originally committed as revision 22922 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago