Statistics
| Branch: | Revision:

ffmpeg / libavformat / avidec.c @ 4dcde00c

History | View | Annotate | Download (46.1 KB)

# Date Author Comment
8978feda 04/03/2011 08:46 PM Anton Khirnov

avio: introduce an AVIOContext.seekable field

Use it instead of url_is_streamed and AVIOContext.is_streamed.

2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

45a8a02a 03/17/2011 02:24 AM Anton Khirnov

lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes sense

Signed-off-by: Ronald S. Bultje <>

66e5b1df 03/07/2011 10:20 PM Anton Khirnov

avio: deprecate url_feof

AVIOContext.eof_reached should be used directly instead.

Signed-off-by: Ronald S. Bultje <>

76aa876e 03/07/2011 04:03 PM Anton Khirnov

avio: avio_ prefix for url_fsize

Signed-off-by: Ronald S. Bultje <>

a2704c97 03/04/2011 04:26 PM Anton Khirnov

avio: add avio_tell macro as a replacement for url_ftell

Signed-off-by: Ronald S. Bultje <>

e356fc57 03/01/2011 05:22 PM Anton Khirnov

lavf: replace all uses of url_fskip with avio_seek

Signed-off-by: Ronald S. Bultje <>

6b4aa5da 03/01/2011 05:12 PM Anton Khirnov

avio: avio_ prefix for url_fseek

Signed-off-by: Ronald S. Bultje <>

b7effd4e 02/21/2011 04:23 PM Anton Khirnov

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...

8d9ac969 02/21/2011 03:23 PM Anton Khirnov

avio: rename av_alloc_put_byte -> avio_alloc_context for consistency

Signed-off-by: Ronald S. Bultje <>

ae628ec1 02/20/2011 01:37 PM Anton Khirnov

avio: rename ByteIOContext to AVIOContext.

Signed-off-by: Ronald S. Bultje <>

47fdf00a 02/07/2011 01:30 AM Anton Khirnov

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 <>

290849e2 02/04/2011 10:00 AM Clément Bœsch

Remove forgotten if (p) av_free(p) forms

Signed-off-by: Mans Rullgard <>

dfd2a005 01/29/2011 10:55 PM Luca Barbato

Replace dprintf with av_dlog

dprintf clashes with POSIX.1-2008

c6610a21 01/26/2011 10:10 PM Diego Elio Pettenò

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.

6081f8c4 01/25/2011 02:43 AM Mans Rullgard

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 <>

456a70ae 12/26/2010 01:23 AM Peter Ross

add ff_get_bmp_header

Originally committed as revision 26091 to svn://svn.ffmpeg.org/ffmpeg/trunk

8ba5bf5a 11/24/2010 08:53 PM Aurelien Jacobs

avidec: read some of the Nikon specific tags produced by Nikon cameras

Originally committed as revision 25821 to svn://svn.ffmpeg.org/ffmpeg/trunk

73d0e331 11/23/2010 12:04 PM Aurelien Jacobs

avidec: support non-standard creation_time format

Originally committed as revision 25815 to svn://svn.ffmpeg.org/ffmpeg/trunk

d35cdd57 11/23/2010 12:03 PM Aurelien Jacobs

avidec: trivial simplification regarding av_metadata_set

Originally committed as revision 25814 to svn://svn.ffmpeg.org/ffmpeg/trunk

933875a0 11/21/2010 07:00 PM Aurelien Jacobs

avidec: export creation_date as metadata

Originally committed as revision 25785 to svn://svn.ffmpeg.org/ffmpeg/trunk

03700d39 10/15/2010 07:04 PM Anton Khirnov

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

2b50c4f6 09/02/2010 11:53 AM Carl Eugen Hoyos

Cosmetics: Reindent after r25023.

Originally committed as revision 25024 to svn://svn.ffmpeg.org/ffmpeg/trunk

4ed899f2 09/02/2010 11:51 AM Andrew Wason

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

f138fa78 07/30/2010 11:41 PM Aurelien Jacobs

100l: av_freep() needs the address of the pointer

Originally committed as revision 24613 to svn://svn.ffmpeg.org/ffmpeg/trunk

37287d41 07/29/2010 10:17 PM Aurelien Jacobs

avidec: demux ASS and SRT tracks out of GAB2 chunks

Originally committed as revision 24579 to svn://svn.ffmpeg.org/ffmpeg/trunk

bbfb2c80 07/17/2010 05:40 AM Jai Menon

avidec : Free packet if dv_produce_packet fails.

Originally committed as revision 24281 to svn://svn.ffmpeg.org/ffmpeg/trunk

a58e6cea 07/17/2010 05:08 AM Jai Menon

avidec : Free codec context before initializing the chained DV demuxer.

Originally committed as revision 24279 to svn://svn.ffmpeg.org/ffmpeg/trunk

8fc0162a 07/10/2010 10:12 PM Måns Rullgård

Add av_ prefix to bswap macros

Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk

9862f9e1 07/02/2010 11:39 PM Michael Niedermayer

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

89ac23cd 07/02/2010 11:33 PM Michael Niedermayer

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

d01144b9 07/02/2010 03:09 PM Michael Niedermayer

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

8a472821 07/01/2010 01:50 PM Michael Niedermayer

Factorize get_duration() out of 4 places of the avi demuxer.

Originally committed as revision 23934 to svn://svn.ffmpeg.org/ffmpeg/trunk

0c0fd063 07/01/2010 12:09 AM Michael Niedermayer

Prevent infinite recursion of odml indexes.
This fixes a stack overflow.

Originally committed as revision 23925 to svn://svn.ffmpeg.org/ffmpeg/trunk

fbfccc04 05/20/2010 06:34 PM Michael Niedermayer

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

e1954bb5 05/04/2010 05:17 PM Thierry Foucu

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

bf29cbc2 04/20/2010 05:05 PM Sebastian Vater

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

cc947f04 03/31/2010 12:29 PM Jean-Daniel Dupas

Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.

Patch by Jean-Daniel Dupas, devlists shadowlab org

Originally committed as revision 22744 to svn://svn.ffmpeg.org/ffmpeg/trunk

72415b2a 03/30/2010 11:30 PM Stefano Sabatini

Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.

Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk

28eb5773 03/14/2010 01:38 PM Reimar Döffinger

Avoid creating tiny (possibly only 64 bytes large) audio packets resulting in
huge processing and memory usage overhead for avi files with raw PCM audio.

Originally committed as revision 22521 to svn://svn.ffmpeg.org/ffmpeg/trunk

04d2540c 02/06/2010 12:32 PM Anton Khirnov

Add AVI metadata conversion table.

Patch by Anton Khirnov (gmail{wyskas}).

Originally committed as revision 21653 to svn://svn.ffmpeg.org/ffmpeg/trunk

7a9af8ec 02/05/2010 12:16 PM Michael Niedermayer

Support strn tag in avidec.

Originally committed as revision 21643 to svn://svn.ffmpeg.org/ffmpeg/trunk

1ac08937 02/05/2010 11:50 AM Michael Niedermayer

Correcting wrong looking stream_id validity check in avidec.

Originally committed as revision 21642 to svn://svn.ffmpeg.org/ffmpeg/trunk

3c8d75e6 02/03/2010 12:35 AM Michael Niedermayer

Only set duration for streams where it is likely correct.
Fixes issue1120

Originally committed as revision 21620 to svn://svn.ffmpeg.org/ffmpeg/trunk

bce8840a 02/02/2010 11:53 PM Michael Niedermayer

Set nb_frames.
Also add DXSA tag (commited by mistake in this commit, i can revert and recommit
seperately if someone wants)

Originally committed as revision 21619 to svn://svn.ffmpeg.org/ffmpeg/trunk

0941ee0f 01/12/2010 12:29 AM Carl Eugen Hoyos

Support uncompressed ("Resolution 1:1") Avid AVI Codec, (partially) fixes issue 1474.

Originally committed as revision 21154 to svn://svn.ffmpeg.org/ffmpeg/trunk

12ad6671 12/13/2009 08:27 PM Michael Niedermayer

Use AV_METADATA_DONT_STRDUP* / use av_malloced metadata instead of strduped
arrays of fixed length.
Code from ffmbc with changes to adapt to our metadata API.

Originally committed as revision 20836 to svn://svn.ffmpeg.org/ffmpeg/trunk

df84d7d9 10/22/2009 06:43 PM Michael Niedermayer

Fix infinite loop with size==0 && sample_size!=0 in non interleaved avis.
Untested, i do not have a sample.

Originally committed as revision 20348 to svn://svn.ffmpeg.org/ffmpeg/trunk

83a4d356 10/22/2009 06:32 PM Michael Niedermayer

Support non interleaved avi files that have 0<size<sample_size.
(No i do not have a sample its thus also untested)
The new code is also simpler.

Originally committed as revision 20347 to svn://svn.ffmpeg.org/ffmpeg/trunk

e471e3c4 10/01/2009 10:24 AM Aurelien Jacobs

Fix playback of strange AVI files with stray LIST.
sample: http://samples.mplayerhq.hu/avi/AV36_1.AVI
fix suggested by Michael

Originally committed as revision 20118 to svn://svn.ffmpeg.org/ffmpeg/trunk

2c14ded3 09/09/2009 04:26 PM Maksym Veremeyenko

Fix a bug with reading non-interleaved AVI if one the streams is
shorter.

Patch by Maksym Veremeyenko, verem m1stereo tv

Originally committed as revision 19798 to svn://svn.ffmpeg.org/ffmpeg/trunk

b60de406 09/09/2009 04:25 PM Maksym Veremeyenko

Factorise st->nb_index_entries check.

Patch by Maksym Veremeyenko, verem m1stereo tv

Originally committed as revision 19797 to svn://svn.ffmpeg.org/ffmpeg/trunk

44ed34b7 08/26/2009 08:38 AM Reimar Döffinger

Check for seek failures in avi_load_index, otherwise if the index offset
is invalid (e.g. truncated file) we might end up reading the whole file
since trying to seek beyond the end of file does not set EOF.

Originally committed as revision 19709 to svn://svn.ffmpeg.org/ffmpeg/trunk

7305d97f 08/25/2009 09:46 AM Maksym Veremeyenko

Do not read index chunks as audio/video data; closes issue 1336.
patch by Maksym Veremeyenko, verem m1stereo tv

Originally committed as revision 19700 to svn://svn.ffmpeg.org/ffmpeg/trunk

7a9c86e9 08/10/2009 08:53 PM Aurelien Jacobs

avidec: simplify, using av_rescale_q() instead of av_rescale()

Originally committed as revision 19624 to svn://svn.ffmpeg.org/ffmpeg/trunk

18b55f63 07/29/2009 05:12 PM Diego Biurrun

Remove pointless '#ifdef DEBUG' around dprintf macro.

Originally committed as revision 19535 to svn://svn.ffmpeg.org/ffmpeg/trunk

63613fe6 07/26/2009 12:20 PM Måns Rullgård

Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN

Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk

3dcddf82 07/03/2009 11:27 AM Reimar Döffinger

Check for failed extradata malloc, fixes a crash in out-of-memory conditions
or with extremely large extradata.

Originally committed as revision 19333 to svn://svn.ffmpeg.org/ffmpeg/trunk

5a4a4d78 07/03/2009 11:26 AM Reimar Döffinger

Check size of "strf" header against size of enclosing "LIST" if there is one.

Originally committed as revision 19332 to svn://svn.ffmpeg.org/ffmpeg/trunk

1a40491e 06/22/2009 11:09 PM Daniel Verkamp

Add ff_ prefixes to exported symbols in libavformat/riff.h.
patch by Daniel Verkamp, aniel drv nu

Originally committed as revision 19254 to svn://svn.ffmpeg.org/ffmpeg/trunk

8c68f25b 05/25/2009 06:28 PM Michael Niedermayer

Workaround broken AVI files from DC-XZ6.
Fixes issue897.

Originally committed as revision 18942 to svn://svn.ffmpeg.org/ffmpeg/trunk

c13b250b 05/24/2009 10:59 PM Baptiste Coudurier

move DEBUG define before include to get dprintf and change printf to dprintf

Originally committed as revision 18932 to svn://svn.ffmpeg.org/ffmpeg/trunk

87657891 03/19/2009 09:57 PM Baptiste Coudurier

set avi fsize to INT64_MAX if riff tag end is not set and file size is not available

Originally committed as revision 18052 to svn://svn.ffmpeg.org/ffmpeg/trunk

c60a0f85 02/21/2009 08:57 PM Michael Niedermayer

Check for alloc failures.

Originally committed as revision 17497 to svn://svn.ffmpeg.org/ffmpeg/trunk

8ebe099a 02/21/2009 08:44 PM Michael Niedermayer

Check for EOF during index reading.

Originally committed as revision 17496 to svn://svn.ffmpeg.org/ffmpeg/trunk

f5007cc8 02/21/2009 08:11 PM Michael Niedermayer

Handle chunks with the MSB in size set correctly that is unsigned.

Originally committed as revision 17491 to svn://svn.ffmpeg.org/ffmpeg/trunk

31f2616d 02/21/2009 03:32 PM Michael Niedermayer

Fix raw rgb/bgr vertical flip in avi based on info from http://www.fourcc.org/fccbihgt.php.
partially fixes issue862.

Originally committed as revision 17475 to svn://svn.ffmpeg.org/ffmpeg/trunk

1e04bbee 02/19/2009 12:19 PM Peter Ross

AVI demuxer: return AVERROR_EOF upon detection of end of file.

Originally committed as revision 17456 to svn://svn.ffmpeg.org/ffmpeg/trunk

037c08d6 02/16/2009 06:52 PM Måns Rullgård

avidec: fix error introduced in r17382

Originally committed as revision 17385 to svn://svn.ffmpeg.org/ffmpeg/trunk

87ad63c0 02/16/2009 04:33 PM Benoit Fouet

Add a context to av_log() calls and modify a function prototype to allow it.

Originally committed as revision 17382 to svn://svn.ffmpeg.org/ffmpeg/trunk

5ea7ce88 02/02/2009 09:45 PM Aurelien Jacobs

modify the way to pass parameters to av_metadata_set()
This improves code readability and this avoid warnings about discarding
qualifiers from pointer target type.

Originally committed as revision 16952 to svn://svn.ffmpeg.org/ffmpeg/trunk

2bb6eba2 01/17/2009 12:21 PM Aurelien Jacobs

remove ff_get_fourcc() and use AV_RL32() instead

Originally committed as revision 16654 to svn://svn.ffmpeg.org/ffmpeg/trunk

9d9aac84 01/16/2009 02:03 PM Marc Mason

Make unsigned int a variable that does not need to be explicitely 32 bits.
Fixes a warning.
Patch by: Marc Mason mpeg (your_ad_here) blue (chez) free fr

Originally committed as revision 16632 to svn://svn.ffmpeg.org/ffmpeg/trunk

49fb20cb 01/14/2009 05:19 PM Aurelien Jacobs

replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
and remove all ENABLE_ definitions.

Originally committed as revision 16600 to svn://svn.ffmpeg.org/ffmpeg/trunk

7b114c09 01/12/2009 12:07 AM Måns Rullgård

AVI: add bswap.h include needed on big endian

Originally committed as revision 16564 to svn://svn.ffmpeg.org/ffmpeg/trunk

bc1d2afb 01/04/2009 11:31 PM Aurelien Jacobs

rename AVMetaData to AVMetadata and meta_data to metadata

Originally committed as revision 16430 to svn://svn.ffmpeg.org/ffmpeg/trunk

47146dfb 01/04/2009 06:48 PM Michael Niedermayer

Generic metadata API.
avi is updated as example.
No version bump, the API still might change slightly ...
No update to ffmpeg.c as requested by aurel.

Originally committed as revision 16424 to svn://svn.ffmpeg.org/ffmpeg/trunk

ca5b528e 12/16/2008 04:14 PM Michael Niedermayer

Fix bug where the avi demxuer lost the first frame of malformed
ODML avis.
Fixes VS2k5DebugDemo-01-partial.avi

Originally committed as revision 16167 to svn://svn.ffmpeg.org/ffmpeg/trunk

a3bb564e 12/14/2008 08:38 PM Michael Niedermayer

10l (forgot sample_size)
Should fix fate.

Originally committed as revision 16133 to svn://svn.ffmpeg.org/ffmpeg/trunk

25983dcd 12/14/2008 03:48 PM Michael Niedermayer

Fix non interleaved variable fps ODML avis.
Fixed issue738

Originally committed as revision 16127 to svn://svn.ffmpeg.org/ffmpeg/trunk

7ccc636f 10/04/2008 10:26 PM Michael Niedermayer

Favor even chunk sizes in ambiguous cases.
Fixes transcode_069_produces_uneven_chunk_size.avi.

Originally committed as revision 15557 to svn://svn.ffmpeg.org/ffmpeg/trunk

f080a7bd 10/04/2008 09:57 PM Michael Niedermayer

Factorize stream id parsing.

Originally committed as revision 15556 to svn://svn.ffmpeg.org/ffmpeg/trunk

bc5c918e 10/03/2008 10:16 AM Diego Biurrun

Remove offset_t typedef and use int64_t directly instead.
The name offset_t is easily confused with the standard off_t type and
*_t is POSIX reserved namespace if any POSIX header is included.

Originally committed as revision 15533 to svn://svn.ffmpeg.org/ffmpeg/trunk

dd1c8f3e 09/08/2008 02:24 PM Luca Abeni

Bump Major version, this commit is almost just renaming bits_per_sample to
bits_per_coded_sample but that cannot be done seperately.
Patch by Luca Abeni
Also reset the minor version and fix the forgotton change to libfaad.
Note: The API/ABI should not be considered stable yet, there still may...

59729451 08/23/2008 11:43 PM Aurelien Jacobs

convert every muxer/demuxer to write/read sample_aspect_ratio from/to
the corresponding AVStream instead of AVCodecContext

Originally committed as revision 14933 to svn://svn.ffmpeg.org/ffmpeg/trunk

62f25230 07/30/2008 09:07 PM Baptiste Coudurier

change assert test due to the new reducing of time_base in av_set_pts_info, fix #561

Originally committed as revision 14477 to svn://svn.ffmpeg.org/ffmpeg/trunk

15d6e361 07/04/2008 01:05 PM Diego Biurrun

spelling cosmetics

Originally committed as revision 14064 to svn://svn.ffmpeg.org/ffmpeg/trunk

ade8d8b9 06/20/2008 05:22 PM Baptiste Coudurier

uniformize AVStream->priv_data freeing in av_close_input_stream

Originally committed as revision 13838 to svn://svn.ffmpeg.org/ffmpeg/trunk

ccafd472 06/20/2008 05:16 PM Baptiste Coudurier

factorize read_header failure freeing code

Originally committed as revision 13837 to svn://svn.ffmpeg.org/ffmpeg/trunk

25176d6e 06/18/2008 09:03 AM Florian Echtler

Parse 'dats' as data.
Patch by Florian Echtler: floe butterbrot org

Originally committed as revision 13801 to svn://svn.ffmpeg.org/ffmpeg/trunk

bde15e74 06/03/2008 04:20 PM Stefano Sabatini

Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
patch by Stefano Sabatini, stefano.sabatini-lala poste.it
along with some spelling/consistency fixes for the long names by me

Originally committed as revision 13649 to svn://svn.ffmpeg.org/ffmpeg/trunk

fce88d52 05/28/2008 12:10 AM Michael Niedermayer

Fixes NULL pointer dereference CID66

Originally committed as revision 13483 to svn://svn.ffmpeg.org/ffmpeg/trunk

9d4cd3bf 05/28/2008 12:07 AM Michael Niedermayer

Tell the user if a AVI is non interleaved.

Originally committed as revision 13482 to svn://svn.ffmpeg.org/ffmpeg/trunk

f4433de9 05/26/2008 11:14 PM Diego Biurrun

consistency cosmetics: indices --> indexes

Originally committed as revision 13444 to svn://svn.ffmpeg.org/ffmpeg/trunk

2be83b96 05/26/2008 08:29 PM Michael Niedermayer

Support non interleaved avi with phantom streams.

Originally committed as revision 13436 to svn://svn.ffmpeg.org/ffmpeg/trunk

7ce76ee4 04/13/2008 11:45 AM Michael Niedermayer

Print warning if scale/rate is invalid.

Originally committed as revision 12806 to svn://svn.ffmpeg.org/ffmpeg/trunk

0dbb6515 04/13/2008 11:41 AM Michael Niedermayer

indent

Originally committed as revision 12805 to svn://svn.ffmpeg.org/ffmpeg/trunk

4a030a1f 04/13/2008 11:41 AM Michael Niedermayer

Restructure if/else a little.

Originally committed as revision 12804 to svn://svn.ffmpeg.org/ffmpeg/trunk

1ce50d32 03/28/2008 03:50 AM Michael Niedermayer

indent

Originally committed as revision 12618 to svn://svn.ffmpeg.org/ffmpeg/trunk

79d6b9cb 03/28/2008 02:44 AM Michael Niedermayer

1000l to myself, dereferencing uninitalized pointer.

Originally committed as revision 12614 to svn://svn.ffmpeg.org/ffmpeg/trunk