Statistics
| Branch: | Revision:

ffmpeg / libavformat / nutdec.c @ 4dcde00c

History | View | Annotate | Download (29.9 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.

b64030f2 03/30/2011 05:48 AM Anton Khirnov

avio: make get_checksum() internal.

4c4427a7 03/30/2011 05:47 AM Anton Khirnov

avio: make init_checksum() internal.

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

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

4839c192 03/17/2011 02:59 AM Anton Khirnov

lavf: move ff_get_v from avio.h to avio_internal.h

And rename it to ffio_read_varlen.

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

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

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

avio: rename ByteIOContext to AVIOContext.

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

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.

0d3ee135 01/12/2011 04:40 PM Stefano Sabatini

Use AVERROR_INVALIDDATA rather than -1 for nutdec error codes.

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

c55f891c 10/24/2010 07:28 AM Anton Khirnov

nutdec: when parsing info packet, set metadata var only once

Originally committed as revision 25558 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

54036be1 08/18/2010 08:34 PM Aurelien Jacobs

rename LAVF_API_* defines to FF_API_* to clarify that it is not public API

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

072e3efd 08/17/2010 07:30 PM Aurelien Jacobs

add LAVF_API_MAX_STREAMS define to disable the deprecated MAX_STREAMS API

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

3c0eec06 08/10/2010 04:36 PM Aurelien Jacobs

get rid of MAX_STREAMS limit in nutdec

Originally committed as revision 24755 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

e6b22522 07/10/2010 10:09 PM Måns Rullgård

bswap: change ME to NE in macro names

Other parts of FFmpeg use NE (native endian) rather than ME (machine).
This makes it consistent.

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

a07a06b0 07/03/2010 10:25 AM Eli Friedman

Fix warning "passing argument from incompatible pointer type".

Patch by Eli Friedman, eli d friedman a gmail

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

49837b8d 05/23/2010 06:34 PM Stefano Sabatini

Make the nut decoder read the ff_nut_video_tags to detect codec id of
the input file.

This is required as Nut codec tags are not contained in
ff_codec_bmp_tags.

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

2e01def0 05/23/2010 06:34 PM Stefano Sabatini

Define ff_nut_video_tags and make Nut muxer and demuxer set it in
codec_tag.

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

8e89cd1f 05/09/2010 10:56 PM Stefano Sabatini

Make the nut demuxer issue a more meaningful error message if it
cannot recognize the provided codec tag.

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

2ef6c124 04/25/2010 02:27 PM Stefano Sabatini

Mark av_metadata_set() as deprecated, and use av_metadata_set2()
in its place.

av_metadata_set() is going to be dropped at the next major bump.

Originally committed as revision 22961 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

32e543f8 03/30/2010 03:50 PM Benoit Fouet

Replace @returns by @return.

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

f990f6e3 03/28/2010 09:59 AM Vitor Sessak

Fix NUT (de)muxer warnings:
CC libavformat/nutdec.o
libavformat/nutdec.c: In function ‘read_seek’:
libavformat/nutdec.c:862: warning: passing argument 3 of ‘av_tree_find’ from incompatible pointer type
./libavutil/tree.h:44: note: expected ‘int ()(void *, const void *)’ but argument is of type ‘int ()(struct Syncpoint *, struct Syncpoint *)’...

3bfb30b9 03/24/2010 10:44 PM Vitor Sessak

Fix warnings in NUT demuxer:

libavformat/nutdec.c: In function ‘read_seek’:
libavformat/nutdec.c:862: warning: passing argument 4 of ‘av_tree_find’ from incompatible pointer type
./libavutil/tree.h:44: note: expected ‘void *’ but argument is of type ‘struct Syncpoint *’...

4b83fc0f 03/03/2010 05:31 PM Vitor Sessak

Plug memory leak in NUT muxer and demuxer

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

8a4d067d 03/01/2010 06:16 PM Vitor Sessak

Revert r22119 and partially revert 22120.

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

e1c0b00b 03/01/2010 07:26 AM Anton Khirnov

nutdec: make chapter start and length uint64_t to prevent overflows.
Patch by Anton Khirnov wyskas chez gmail punto com

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

27dbc47c 02/28/2010 08:49 PM Vitor Sessak

Plug some memory leaks in NUT muxer and demuxer

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

43382b5f 02/24/2010 06:27 AM Anton Khirnov

Introduce metadata conversion table for NUT muxer and demuxer.
Patch by Anton Khirnov (wyskas, do no evil mail)
Thread "[PATCH] nut metadata conversion table"

Originally committed as revision 22015 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

00798e45 02/27/2009 11:10 PM Aurelien Jacobs

use new metadata API in nut demuxer

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

9ce6c138 01/17/2009 11:13 AM Aurelien Jacobs

export gcd function as av_gcd()

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

b250f9c6 01/13/2009 11:44 PM Aurelien Jacobs

Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

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

6a5d31ac 01/11/2009 10:19 PM Diego Biurrun

Fix build: Add intreadwrite.h and bswap.h #includes where necessary.

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

52afa376 12/11/2008 07:06 PM Michael Niedermayer

remove _t for POSIX compatibility.

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

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

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

c2a3dcaf 05/27/2008 08:48 PM Michael Niedermayer

Fix memleak, fixed CID123.

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

abd2256d 05/23/2008 06:15 PM Michael Niedermayer

Pass time_base as argument to new_chapter() as well.
This fixes the wrong timebase the matroska demuxer had after my previous commits.
Maybe we should reduce new_chapter() to just (AVFormatContext, int id) ?

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

883fe4d5 05/23/2008 01:52 PM Michael Niedermayer

Chapter demuxing support. (untested as I have no nuts with chapters)
Isn't that much simpler than Matroska?

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

245976da 05/09/2008 11:56 AM Diego Biurrun

Use full path for #includes from another directory.

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

d6f142a1 05/04/2008 10:29 AM Diego Pettenò

Fix 'comparison always false' warning.
patch by Diego 'Flameeyes' Pettenò, flameeyes gmail com

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

bd107136 03/15/2008 04:15 PM Diego Biurrun

typo fixes

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

2cab6401 03/12/2008 11:58 PM Diego Biurrun

typo fixes

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

90c2295b 03/07/2008 07:25 PM Evgeniy Stepanov

Add 'disposition' bitfield to AVStream and use it for both muxing and demuxing
of matroska and nut.

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

1326621c 03/05/2008 01:06 PM Michael Niedermayer

Subtitle support. (untested)

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

9fdfd21c 03/02/2008 11:13 PM Michael Niedermayer

factorize

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

a048febd 03/02/2008 11:11 PM Michael Niedermayer

subtitles (codec tag tables still missing ...)

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

3b4f69ae 02/15/2008 02:36 AM Michael Niedermayer

Elision header demuxing support.

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

7eeebcc5 02/13/2008 08:17 PM Michael Niedermayer

Read match time delta in the frame header.
We do not do anything with it as lavf does not really support it yet.

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

6cb4b28f 02/13/2008 08:13 PM Michael Niedermayer

Read match_time_delta in the framecode table.

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

5e534865 02/13/2008 09:26 AM Diego Biurrun

typo fix: inited --> initialized

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

eae213af 02/04/2008 10:30 AM Oded Shimon

Remove old workaround in nutdec.c for libnut bug

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

b19e3983 02/04/2008 10:29 AM Oded Shimon

missing " && j<syncpoint_count" protection in the index parsing, as the
spec instructs...

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

103d74ea 02/04/2008 10:27 AM Oded Shimon

ff_nut_reset_ts() expected to get 'ts*time_base_count', but muxer only
gave it 'ts'. Fixed by changing ff_nut_reset_ts() and demuxer params

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

0fca8bc8 02/04/2008 12:33 AM Michael Niedermayer

Fix info packet type, found by oded as well as the new pedantic const
warnings.

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

7ebab679 02/04/2008 12:31 AM Michael Niedermayer

-Wwrite-strings nitpicking fix

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

3858a227 12/31/2007 04:43 PM Michael Niedermayer

More verbose aspect ratio error msg.

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

899681cd 11/21/2007 07:41 AM Björn Axelsson

Use dynamically allocated ByteIOContext in AVFormatContext

patch by: Björn Axelsson, bjorn d axelsson a intinor d se
thread: [PATCH] Remove static ByteIOContexts, 06 nov 2007

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

7798b42d 11/03/2007 06:29 PM Kostya Shishkov

Add ff_ prefix to get_v()

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

897d3eef 11/03/2007 06:26 PM Kostya Shishkov

Make get_v() available to the other demuxers

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

992e78f5 10/30/2007 12:01 AM Baptiste Coudurier

rename av_crc04C11DB7_update to ff_crc04C11DB7_update and move it to aviobuf.c so it can be reused by other (de)muxers

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

0ab1ebea 09/16/2007 02:37 PM Diego Biurrun

warning fix:
nutdec.c: In function ‘nut_read_timestamp’:
nutdec.c:759: warning: label ‘resync’ defined but not used

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

30a987ec 08/27/2007 12:36 PM Diego Biurrun

Remove unused variable.

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

93951943 08/17/2007 10:45 AM Diego Biurrun

spelling/wording cosmetics

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

4a3b5fe1 08/09/2007 11:24 PM Michael Niedermayer

move syncpoint cache related stuff to common file

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

073811cd 08/09/2007 09:35 PM Michael Niedermayer

fix forw_ptr crc check
not really beautiful but i did not find a nice solution
note, untested

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

7a26da44 08/09/2007 09:04 PM Michael Niedermayer

get rid of printf

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

f13ea4e0 08/09/2007 06:37 PM Michael Niedermayer

move lsb2full to common file

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

874abace 08/09/2007 04:29 PM Michael Niedermayer

move syncpoint timestamp resetting code to a common file

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

47772399 08/09/2007 12:51 PM Michael Niedermayer

check forw_ptr CRC

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

efd8f22a 08/09/2007 11:04 AM Michael Niedermayer

make StreamContext.time_base a pointer

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

769e10f0 07/19/2007 03:21 PM Panagiotis Issaris

Replace all occurrences of AVERROR_NOMEM with AVERROR.

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

99a45234 07/08/2007 01:41 AM Måns Rullgård

nutdec: don't use deprecated codec_get_{bmp,wav}_id()

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

e5a389a1 07/05/2007 10:40 AM Diego Biurrun

license header consistency cosmetics

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

75e61b0e 06/23/2007 11:10 PM Måns Rullgård

use new string functions
based on patch by Reimar Döffinger

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

706da4af 06/16/2007 02:52 PM Måns Rullgård

fix some printf format specifiers

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

755bfeab 06/12/2007 09:29 AM Diego Biurrun

misc spelling fixes

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

a47ec310 04/24/2007 05:50 AM Diego Biurrun

Remove unused code + variable, fixes a warning.

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

119e48d9 04/08/2007 08:21 PM Stefan Huehner

Make some functions which aren't used outside their declaring source file
and have no prototype in a header file static.
patch by Stefan Huehner, stefan huehner org

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

559fd1e7 03/18/2007 11:59 PM Clemens Ladisch

fix end-of-file detection
At the end of a nut file, the check for url_feof() fails because the
eof flag was cleared by the url_fseek() call that was used to skip over
the index packet. This patch fixes this
patch by: Clemens Ladisch % cladisch A fastmail P net %...

bb0eb714 02/28/2007 03:28 AM Luca Barbato

get_packetheader() forgot to read the header_checksum in big packets
patch from Clemens Ladisch cladisch AT fastmail dot net
(stray base64 patch reverted in the next commits)

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

07495657 01/21/2007 12:43 PM Michael Niedermayer

simplify

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

06599638 11/16/2006 11:03 AM Michael Niedermayer

check max_pts_distance

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

0a3b575b 11/16/2006 10:20 AM Michael Niedermayer

skip non keyframes after seeking between syncpoint and the first keyframe

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

c873bc17 11/16/2006 09:59 AM Michael Niedermayer

remove unused variables

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

09e15184 11/16/2006 09:56 AM Michael Niedermayer

removing unused code

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

2dbe0bd4 11/14/2006 10:24 PM Michael Niedermayer

check for frames with 2*size > max_dist and no crc

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

8ba3e5d8 11/14/2006 10:23 PM Michael Niedermayer

resync from last syncpoint

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

a26353e2 11/14/2006 10:22 PM Michael Niedermayer

remove skip spam

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

f32554fa 11/14/2006 01:33 PM Michael Niedermayer

indention

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

071790c8 11/14/2006 01:32 PM Michael Niedermayer

seeking with index

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