Statistics
| Branch: | Revision:

ffmpeg / libavformat / mpeg.c @ 4dcde00c

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

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

19711af5 02/06/2011 09:35 PM Anton Khirnov

lavf: move internal functions from avformat.h to internal.h

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.

49bd8e4b 06/30/2010 03:38 PM Måns Rullgård

Fix grammar errors in documentation

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

612dc023 05/24/2010 12:32 PM Janne Grunau

Skip pes payload during probing to avoid start code emulation.

Patch by Janne Grunau, janne-ffmpeg jannau net

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

0332324a 02/10/2010 02:25 PM Michael Niedermayer

Dont give up after 100kb of zero bytes but returnd EAGAIN
fixes issue1729

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

c45ebd54 02/02/2010 04:47 PM Michael Niedermayer

Set AVPacket.pos in MPEG-PS demuxer.

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

6de5b627 12/08/2009 12:24 PM Michael Niedermayer

Also print the number of invalid packets in the debug output.

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

55f65247 12/08/2009 12:19 PM Michael Niedermayer

Flip the comparission direction of vid+audio+priv1 and pspack, it appears to have
been wrong.
Fixes issue1571.

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

711e69a7 10/20/2009 03:27 PM tralph11@yahoo.com

Improve sofdec dectection to avoid false positives for MP2.

Patch by tralph11, tralph11 yahoo

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

c4674a47 09/15/2009 12:20 PM Michael Niedermayer

Make mpeg_probe() pass probetest.

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

3489e150 09/15/2009 10:01 AM Reimar Döffinger

Slightly stricter MPEG-PES probing, fixes issue 1383.

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

e8c93839 04/17/2009 06:08 PM Michael Niedermayer

Remove 2 ++ from check_pes() that are useless, found by CSA.

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

9ba4821d 03/19/2009 09:23 PM Ramiro Polla

Split TrueHD decoder from MLP

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

1aeb55a1 03/05/2009 07:13 PM Diego Biurrun

Mark dvdaudio_substream_type variable as av_uninit to work around false
positive uninitialized variable warning.

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

80e58c61 02/11/2009 11:09 AM Benoit Fouet

Allow demuxing of audio substreams stored as 0x06 type.
Fixes issue 725: MPEG2 PS with PCM audio.
On behalf of Jai.

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

d84d6fbf 02/09/2009 01:46 AM Alex Converse

Increase the number of packets required to identify as MPEG PES to keep from
identifying MP3 files with padding or garbage at the beginning.

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

fb65d2ca 10/02/2008 04:03 PM Diego Pettenò

Use enum typers instead of int.
Patch by Diego 'Flameeyes' Pettenò: flameeyes gmail

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

274335e7 08/26/2008 01:29 AM Michael Niedermayer

vertical align

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

ff9c8d7c 08/15/2008 04:13 PM Michael Niedermayer

Add flag to mark demuxers that can output discontinuous timestamps.
(could also be added to muxers if someone wants)

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

c1c90466 07/12/2008 10:17 PM Michael Niedermayer

Use CODEC_ID_PROBE when the mpeg-ps demuxer does not know exactly which
video codec is used.
Fixes issue49 Departed Trailer.evo (mpeg ps missdetecting h264 as mpeg2video)

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

9b64a036 06/19/2008 11:25 PM Baptiste Coudurier

remove useless close funcs

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

5faf1689 05/29/2008 09:50 AM Joakim Plate

Check return of url_fseek in mpeg timestamp reading code.
Patch by Joakim elupus ecce se

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

4860abb1 05/21/2008 02:26 AM Lars Täuber

support dvd pcm 20/24 bits, patch by Lars Täuber, lars.taeuber gmx net

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

b22d0c04 04/29/2008 12:12 AM Michael Niedermayer

Support invalid mpeg created by vdr
(http://www.lucke.in-berlin.de/test_streams/last_played_fine_with_r7852_001.vdr).
fixes issue434

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

675b8390 03/04/2008 01:31 AM Michael Niedermayer

Ignore flags after pts/dts if there are no bytes left.
Fixes decoding of vdr-radio.vdr. (issue198)

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

6ba90c20 01/14/2008 04:11 PM Michel Bardiaux

Suppress runaway index on streamed input

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

3dea63bd 01/13/2008 01:33 PM Paul Kelly

user specifyable maximum amount of memory to use for the index.
patch by Paul Kelly paul stjohnspoint co uk
with some changes by me

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

66e9e302 01/07/2008 11:32 PM Ivo van Poorten

Move parsing of MPEG-PES timestamp to mpeg.h (as an inline function) so it
can easily be reused by other demuxers for formats that encapsulate MPEG-PES.

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

3d94e3ba 01/03/2008 10:02 AM Ivo van Poorten

use one shift less in get_pts()

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

7dc75e8d 12/25/2007 09:37 AM Allan Sandfeld Jensen

Revert r6124, the change was just wrong, other formats than MPEG-PS can be
stored in CDXA as well. And the need for a CDXA specific check is questionable.
Also ive ok-ed that patch instead of mans ...
fixes issue287 (psxstr misdetection as MPEG-PS)

Original commit message:...

7e1720de 12/03/2007 09:37 AM Michael Niedermayer

make mpeg-ps probe less happy with random data
fixes missdetection of O-MP3-5.mp3

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

2c187847 11/08/2007 09:27 PM Måns Rullgård

Improve Sofdec file detection

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

73039e0f 11/08/2007 08:53 PM Aurelien Jacobs

fix potential buffer over-read

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

cc04af34 11/08/2007 08:50 PM Aurelien Jacobs

fix negative fseek

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

8cd4ac3d 11/07/2007 11:56 PM Aurelien Jacobs

correctly set audio codec when demuxing sofdec files
samples: http://samples.mplayerhq.hu/game-formats/sfd/

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

0c904db1 11/03/2007 02:57 PM Michael Niedermayer

typo

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

c6dcd0d7 11/03/2007 01:48 PM Michael Niedermayer

fix misdetection of mp3could_not_find_codec_parameters.mp3

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

2009c7fc 11/01/2007 06:02 PM Aurelien Jacobs

revert part of r10899 which was not intended

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

6177c7ef 11/01/2007 05:50 PM Aurelien Jacobs

remove useless initialization to 0 of adx context

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

4cd25081 08/05/2007 02:17 AM Michael Niedermayer

fix misdetection of out.ac3

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

3504467f 08/05/2007 02:15 AM Michael Niedermayer

//more debug info

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

c4f27438 06/21/2007 09:49 AM Baptiste Coudurier

remove now useless ifdef

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

2abe5a01 06/21/2007 09:39 AM Baptiste Coudurier

split mpeg ps and variants muxer and demuxer, I'll clean more in a few minutes, lpcm freq tab is left static const in mpeg.h for now until we have more code in common

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

7af636d4 04/30/2007 09:46 AM Wolfram Gloger

Fix loop condition so it can be run through more than once.
patch by Wolfram Gloger, wmglo dent.med.uni-muenchen de
reference: [Ffmpeg-devel] buffer underflow messages from the output_example.c

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

268fc082 04/30/2007 09:43 AM Wolfram Gloger

more detailed error message for buffer underflow
patch by Wolfram Gloger, wmglo dent.med.uni-muenchen de

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

57004ff1 04/15/2007 01:51 PM Aurelien Jacobs

add an enum for need_parsing

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

87e87886 04/08/2007 11:34 AM Michael Niedermayer

allocate 32 extra bytes at the end of the probe buffer and remove most probe buf_size checks

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

8fa36ae0 02/13/2007 06:26 PM François Revol

This fixes error handling for BeOS, removing the need for some ifdefs.
AVERROR_ defines are moved to avcodec.h as they are needed in there as well. Feel free to move that to avutil/common.h.
Bumped up avcodec/format version numbers as though it's binary compatible we will want to rebuild apps as error values changed....

aad512b4 02/06/2007 07:14 PM Michael Niedermayer

Revised patch for HD DVD .EVO demuxing by (Ian Caulfield <lowercase name seperated by . place at here gmail place a dot here com>)

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

80036204 01/17/2007 12:06 PM Michael Niedermayer

simplify

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

b90ba24b 01/17/2007 10:55 AM Michael Niedermayer

simplify pts/dts reading

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

75a9fbb9 01/17/2007 10:45 AM Michael Niedermayer

cosmetic

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

7e4709b1 01/17/2007 10:44 AM Michael Niedermayer

reduce len checks, simplifies code
there is a very small chance that a stream which is damaged && unseekable && very small packet && damage to the flags && unlucky buffer state could have a valid packet after a damaged packet lost, but i think this is so unlikely that the simplification outweights it...

e56cfad0 01/17/2007 10:19 AM Michael Niedermayer

seperate redo (we dont handle this possibly valid packet) from
error_redo (somethings is definitly wrong) in which case we try to resync from the last startcode

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

949b1a13 11/01/2006 10:39 PM Steve L'Homme

Replace most of the %lld and %llx by their (cleaner) PRI*64 counterparts.
patch by Steve Lhomme, slhomme divxcorp com

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

7fbde343 10/23/2006 08:57 AM Aurelien Jacobs

replace coder/decoder file description in libavformat by muxer/demuxer

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

191e8ca7 09/27/2006 07:47 PM Måns Rullgård

fix some signedness warnings

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

f5a478f6 09/21/2006 07:31 AM Roman Shaposhnik
  • Moving FifoBuffer out of libavformat/avformat.h and
    libavformat/utils.c into libavutil

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

c5e33115 08/29/2006 12:03 PM Allan Sandfeld Jensen

add support for information in CDXA format
patch by Allan Sandfeld Jensen % kde A carewolf P com %
Original thread:
Date: Aug 18, 2006 6:33 PM
Subject: [Ffmpeg-devel] CDXA in libavformat [patch]

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

a1c69e0b 08/19/2006 08:39 AM Michael Niedermayer

fix probing of 02-Penguin.flac = a single startcode should not override extension based detection

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

83d07313 07/03/2006 09:40 PM Måns Rullgård

attempt to detect Chinese AVS video

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

25c533a2 06/29/2006 07:03 PM Måns Rullgård

detect audio-only program streams and broken files made by VDR

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

19e0e403 06/28/2006 09:40 PM Måns Rullgård

detect MPEG PES streams as MPEG PS; the PS demuxer will cope

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

d8bee8dd 06/19/2006 10:20 PM Måns Rullgård

allow packets with non-zero PES_scrambling_control

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

30a43f2d 03/01/2006 11:29 AM Michael Niedermayer

add size to AVIndex

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

0b2bb354 02/11/2006 09:27 AM Michael Niedermayer

mpeg-ps probe 2nd try

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

9870a7bd 02/08/2006 05:35 PM Michael Niedermayer

replace probe() by one similar to MPEG-ES

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

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

a9e35095 09/23/2005 12:25 AM Diego Biurrun

Replace CONFIG_ENCODERS/CONFIG_DECODERS with CONFIG_MUXERS/CONFIG_DEMUXERS
in libavformat to allow building (de)coders and (de)muxers independently at
some point + support for this option in configure.

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

9ba73f1f 06/15/2005 08:50 PM Aurelien Jacobs

add support for muxing subtitles in mpeg-ps

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

a9c3213f 06/03/2005 02:01 PM Fabrice Bellard

DVD subtitle parsing - show mpeg component IDs by default

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

3f2bf07b 05/20/2005 01:10 PM Joakim Plate

fix ac3 and dts detection (patch by Joakim Plate <joakim.plate at ecce.se>)

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

e3d1cd8e 03/28/2005 05:33 PM Måns Rullgård

PSM support in MPEG-PS demuxer.
Based on a patch by Leon Woestenberg <leonw at mailcan dot com>

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

f3356e9c 03/17/2005 01:25 AM Michael Niedermayer

more fine grained discarding of packets

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

27a5fe5f 03/13/2005 12:13 AM Michael Niedermayer

keyframe & non keyframe index fixes

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

88730be6 02/24/2005 07:08 PM Måns Rullgård

kill warnings patch by (Måns Rullgård <mru inprovide com>)

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

7be806f3 02/09/2005 03:00 AM Chriss

-target dvd minimum vobu length patch by ("Chris" [chris garveycocker com])

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

b9866ebc 01/22/2005 01:36 PM Michael Niedermayer

support discarding uninterresting packets

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

2de7795a 12/29/2004 06:31 PM Michael Niedermayer

common.h -> common.h/bitstream.h

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