Statistics
| Branch: | Revision:

ffmpeg / libavformat / dv.c @ 4dcde00c

History | View | Annotate | Download (16.4 KB)

# Date Author Comment
2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

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

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

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.

fe9d2edb 11/27/2010 02:40 PM Reimar Döffinger

DV: use data_offset to fix seeking in badly cut files where the first
complete frame does not start at position 0.

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

d40a999a 03/23/2010 05:22 PM Tomas Härdin

Fix seeking in DV when filesize is unknown.

Patch by Tomas Härdin, tomas D hardin A codemill D se

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

c76911bd 10/16/2009 07:55 AM Reimar Döffinger

Split parts of dvdata.h into dvdata.c, this ensures that things like
work_chunks_* and dv_idct_factor_* variables appear only once in the binary
instead of 3 times.
Saves 3264 bytes in .rodata and 312416 bytes in .bss on x86_64.

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

f6765f3f 09/29/2009 10:12 AM Reimar Döffinger

Extend DV autodetection to also reliably detect single-frame DVs with
a higher score that MAX/4.
It checks that there are at least 10 DIF headers and at least one per
24000 bytes, and if so considers the file reliably detected as DV.
Passes probetest, too....

6377de61 09/14/2009 10:03 PM Reimar Döffinger

Try harder to avoid false positives for DV probe.
Require at least one signature match per provided 1MB of probe data,
and if there is only a single match, return at most MAX/4.
Fixes issue1382 but could/should probably still be improved.

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

8a4ea200 06/19/2009 09:36 PM Brian Brice

fix dvcprohd 720p channels 3 and 4 audio timestamps, patch by Brian Brice, bbrice at gmail dot com

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

70606675 06/15/2009 01:41 AM Baptiste Coudurier

fix probing and demuxing of pond.dv, issue #887

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

d509c743 06/14/2009 10:34 PM Baptiste Coudurier

check if frame size matches old sys and assumes corrupted input, fixes #1192

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

e34a5996 02/26/2009 08:45 AM Baptiste Coudurier

dv probe

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

67d44b84 02/22/2009 09:42 AM Reimar Döffinger

Support playback of incorrectly cut DV files where the headers do not
start at the first byte.

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

406792e7 01/19/2009 03:46 PM Diego Biurrun

cosmetics: Remove pointless period after copyright statement non-sentences.

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

6d8b21f3 01/05/2009 05:50 PM Roman Shaposhnik

additional recovery for the badly broken streams

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

f94036f1 10/24/2008 09:41 PM Diego Biurrun

prettyprinting cosmetics

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

75f2c209 10/24/2008 09:37 PM Diego Biurrun

spelling cosmetics

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

51f4155f 10/08/2008 08:55 PM Michael Niedermayer

Make gcc 2.95 happy.

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

4e92dabf 10/07/2008 04:59 PM Roman Shaposhnik

replacing frame_rate and frame_rate_base with an AVRational time_base

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

a53621fc 10/07/2008 04:14 PM Roman Shaposhnik

simplifying code as per Michael's suggestion

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

c9b0b38f 10/07/2008 03:49 PM Roman Shaposhnik

simplifying the code as per Michael's suggestion

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

910f02a0 10/02/2008 04:28 PM Diego Biurrun

spelling cosmetics

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

f8007a14 08/28/2008 10:41 PM Roman Shaposhnik

Intial implementation of the DV100 (AKA DVCPRO HD) decoder and demuxer as
specified in SMPTE 370M

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

34fab90f 08/27/2008 08:28 PM Roman Shaposhnik

Two cosmetic changes for improved readability and ease of HDVCPRO HD integration

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

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

ccd425e7 05/06/2008 09:16 AM Diego Biurrun

Remove unnecessary parentheses from return calls.

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

6f3e0b21 07/19/2007 03:23 PM Panagiotis Issaris

Replace all occurrences of AVERROR_IO with AVERROR.

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

05ce0f11 06/25/2007 02:08 AM Maksym Veremeyenko
  • clarifying the AVInputFormat::read_seek return value * changing dv_read_seek() to return the proper value
    (patch by Maksym Veremeyenko)

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

6eb2de74 01/11/2007 10:32 PM Roman Shaposhnik
  • Fixing seeking with DV-AVI (by Jeff Downs <heydowns at borg dot com>)

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

b78e7197 10/07/2006 03:30 PM Diego Biurrun

Change license headers to say 'FFmpeg' instead of 'this program/this library'
and fix GPL/LGPL version mismatches.

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

d4fc91b4 09/15/2006 07:14 PM Panagiotis Issaris

Split the DV demuxer and muxer into separate files (as suggested by Diego
Biurrun).

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

3c8f30a7 09/04/2006 03:33 AM Roman Shaposhnik
  • Restructuring the division of labor between DV codec and DV format
    [ Based on a patch by Brian Brice (bbrice at newtek dot com) ]

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

ff70e601 07/10/2006 09:14 PM Måns Rullgård

allow individual selection of muxers and demuxers

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

d2a067d1 07/09/2006 11:40 PM Måns Rullgård

give AVInput/OutputFormat structs consistent names

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

a97c1e93 06/17/2006 03:53 PM Stefan Huehner

Add (mostly) const to variable and parameter declaration, where a char* was
used and 'const char*' should be, plus make some function declarations
static if they aren't used outside their declaring source file.
patch by Stefan Huehner stefan%%at%%huehner%%dot%%org...

c4e7baa8 04/01/2006 11:13 PM Roman Shaposhnik
  • fixing DV-in-AVI type1 packet production bug

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

0b297700 03/06/2006 08:54 AM Daniel Maas

DVCPRO50 support.

Patch by Daniel Maas dmaas at maasdigital dot com

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

064cf251 02/08/2006 11:43 AM Diego Biurrun

typo

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

8228bff5 01/19/2006 11:36 PM Diego Biurrun

Put muxer-specific code parts in #ifdef CONFIG_MUXERS.
based on a patch by Luca Abeni < lucabe72 #@# email #.# it >

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

5509bffa 01/12/2006 10:43 PM Diego Biurrun

Update licensing information: The FSF changed postal address.

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

bb270c08 12/22/2005 01:10 AM Diego Biurrun

COSMETICS: tabs --> spaces, some prettyprinting

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

115329f1 12/17/2005 06:14 PM Diego Biurrun

COSMETICS: Remove all trailing whitespace.

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

d156a7b7 09/03/2005 12:57 PM Diego Biurrun

typo: viedo --> video

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

4325ffd0 09/02/2005 08:30 AM Michael Niedermayer

lowres support

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

01f4895c 07/17/2005 10:24 PM Michael Niedermayer

changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility

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

a965c478 05/19/2005 12:06 AM Aurelien Jacobs

drop most url_fileno() calls (allows to use ByteIOContext directly in caller apps instead of URLProtocol)

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

c0df9d75 04/30/2005 09:43 PM Michael Niedermayer

switch to native time bases

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

eb1bde3e 04/26/2005 11:04 AM Michael Niedermayer

fix nonsense timestamp mess

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

664f5836 10/13/2004 12:03 AM Roman Shaposhnik
  • static allocation for audio packets. This will make it a little bit
    faster and easier to follow.
    • misc. fixes for problems with seeking

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

8bcb147f 10/12/2004 10:28 AM Michael Niedermayer

generic cur_dts update
removing cur_dts update code from dv again, i think its not needed

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

83582de4 10/12/2004 01:51 AM Michael Niedermayer

flags, rounding and cliping fix by (Nathan Kurz <nate at verse dot com>)
max_pos, buffer flush, audio and video timestamp fix by me

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

50883632 09/27/2004 10:53 PM Roman Shaposhnik
  • experimental dynamic audio stream allocation for DV demuxer. This
    should make Nathan Kurz and if I don't hear too much complaints
    about it -- that's the way it will be from now on.
    • updating regressions

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

96319c39 09/27/2004 10:46 PM Roman Shaposhnik
  • let DV muxer generate audioless DV streams. This might not be 100%
    complaint with the SMPTE & IEC specs, but it seems harmless enough.
    The way we "specify" that there's no audio is by simply leaving
    audio DIFs filled with 0xff (I bet there's a way to mark this...
457c649a 09/22/2004 04:51 AM Roman Shaposhnik
  • fixing a regression introduced by the last seek-support patch

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

aace1f9b 09/21/2004 10:19 AM Michael Niedermayer

gcc 2.95 compile fix by (Jan Knutar <jknutar at nic dot fi>)

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

f520cf1b 09/19/2004 02:57 AM Roman Shaposhnik
  • a couple of silly defaults to make everybody happy.

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

c4e55470 09/19/2004 02:05 AM Roman Shaposhnik
  • misc. fixes and hacks to improve timing detection in raw DV

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

0bf4e2b8 09/18/2004 12:32 AM Nathan Kurz
  • seek in raw DV patch by Nathan Kurz (nate at verse dot com)

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

0c9fc6e1 08/18/2004 08:15 AM Roman Shaposhnik
  • replacing calls to not-always-available gmtime_r with our own code.
    The new helper function actually differs in semantics from gmtime_r,
    so if that seems to be a problem I can actually move it to dv.c
    completely, since only DV muxer uses the code anyway....
d8665b12 08/02/2004 05:42 AM Roman Shaposhnik
  • fixing a bug in DV timestamp generation. Now libavtest doesn't
    depend on a local TZ anymore.

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

3ea1ce21 07/27/2004 05:58 PM Roman Shaposhnik
  • fixing a small quirk with DV audio muxing * making DV testable via libavtest

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

0bd586c5 06/19/2004 03:59 AM Mike Melanson

sweeping change from -EIO -> AVERROR_IO

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

e928649b 05/29/2004 02:06 AM Michael Niedermayer

pass AVPacket into av_write_frame()
fixes the random dts/pts during encoding
asf preroll fix
no more initial zero frames for b frame encoding
mpeg-es dts during demuxing fixed
.ffm timestamp scale fixed, ffm is still broken though

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

9ee91c2f 05/21/2004 08:43 PM Michael Niedermayer

move time_base (pts_num/pts_den) from AVFormatContext -> AVStream

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

12cccabd 05/18/2004 02:33 AM Roman Shaposhnik
  • IEC DV seems to accept SMPTE way of tagging 16:9 too.

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

4568325a 04/06/2004 06:31 AM Roman Shaposhnik
  • making it possible to specify recording date and time in a stream

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

5e9b83f5 04/05/2004 11:36 AM Michael Niedermayer

antitime

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

490c735d 03/24/2004 06:32 AM Roman Shaposhnik
  • turns out raw DV files can have .dif extension

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

8066e59f 03/23/2004 05:35 AM Roman Shaposhnik
  • enabling seek in raw DV files * generic DV demuxer now sets correct pts for every packet

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

c3775e54 03/13/2004 11:04 PM Ronald S. Bultje

fix global name conflicts patch by ("Ronald S. Bultje" <R dot S dot Bultje at students dot uu dot nl>)

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

bc874dae 03/03/2004 03:41 PM Michel Bardiaux

av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)

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

ec26a167 02/11/2004 02:28 AM Roman Shaposhnik
  • turns out write_packet is supposed to return 0 on success, not
    how many bytes were written.

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

ddaae6a9 10/31/2003 10:26 PM Roman Shaposhnik
  • DV demuxer is now capable of decoding auxilary audio stream. So,
    everybody who still uses second streo track for dubbing can
    now export it.
    • void* -> DVDemuxContext* change (per Fabrice's suggestion).
    • -dv1394 capture now works in all modes....
5ff85f1d 10/20/2003 08:23 PM Michael Niedermayer

AVRational
sample_aspect_ratio
aspect ratio in JPEG JFIF is SAR not DAR !
removed nonsense SAR guessing code
various related cleanups
bugs?

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

a686caf0 10/03/2003 01:08 AM Roman Shaposhnik
  • fixing bug that prevented resampling the picture and
    changing pix_fmt at the same time.
    • aspect ratio should be more reliable for DV now.

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

4fa1c4fa 10/01/2003 11:34 PM Roman Shaposhnik
  • preAlpha DV encoding support -- there's still a truckload
    of work to do, but it least people can try it out and share
    ideas. Please don't hesitate to give it a spin:

    $ ffmpeg -i file.avi file.dv

    is all you need.
    • fix for a deallocation bug in DV muxer...
7458ccbb 09/29/2003 05:54 PM Roman Shaposhnik
  • DV handling was streamlined for both muxing/demuxing and
    decoding. All muxing/demuxing functionality is now available
    in libavformat/dv.[ch].
    • dv1394.c and avidec.c were hooked up with general DV demuxer.
    • DVAUDIO is dead! Long live pcm_s16le!...
49057904 09/10/2003 10:37 PM Fabrice Bellard

64 bit pts for writing - more const usage

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

118e91f3 08/28/2003 07:53 PM Roman Shaposhnik
  • Phase 1 for DV encoding support. Muxing/demuxing of DV streams is now
    possible. For example you can do:

    ffmpeg -i i.dv -i audio_track.mp3 -map 0.0 -map 1.0 \
    -vcodec copy -acodec pcm_s16le out.dv

    • Preparations for getting rid of DVAUDIO codec, DV stream really...
e738cee9 04/23/2003 02:04 AM Roman Shaposhnik

Complete support for OpenDML AVIs and AVIs > 2Gb.

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

3e2937be 04/08/2003 09:56 AM Roman Shaposhnik

dv file format support patch by (Roman Shaposhnick <rvs at sun dot com>)

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

6aafe463 04/04/2003 01:45 PM Michael Niedermayer

support for DV aspect ratio and erroneous audio patch by (Dan Dennedy (dan at dennedy dot org) and Roman Shaposhnick <rvs at sun dot com>)

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

ec820113 02/06/2003 10:34 PM Fabrice Bellard

DV packet copy fix by Roman Shaposhnick

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

425ed6e2 01/27/2003 09:21 AM Fabrice Bellard

DV audio decoder by Roman Shaposhnick

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

2a6874fd 01/23/2003 09:52 AM Fabrice Bellard

removed warnings

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

abac6175 11/25/2002 07:07 PM Fabrice Bellard

renamed libav to libavformat

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