| Branch: | Revision:

ffmpeg / libavformat / mpegts.c @ acaceca2

History | View | Annotate | Download (58.1 KB)

# Date Author Comment
e006d71f 03/31/2011 05:46 PM Jindrich Makovicka

mpegts: propagate avio EOF in read_packet()

Allows distinguishing between EOF and IO error in read_packet return code.

Signed-off-by: Jindrich Makovicka <>
Signed-off-by: Anton Khirnov <>

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

6a7e074e 03/07/2011 08:00 PM Anssi Hannula

mpegts: add all stream languages into metadata

This is used at least on some older DVB broadcasts for dual-mono audio

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

789936db 03/07/2011 07:44 PM Hendrik Leppkes

Flag DVB subtitles for the hard hearing appropriately using their component_type id.

This is based on the component_type definition in the DVB SI spec [1].


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

e5197539 03/07/2011 03:51 PM Anton Khirnov

avio: deprecate url_fgetc and remove all it uses

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

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

avio: move init_put_byte() to a new private header and rename it

init_put_byte should never be used outside of lavf, since
sizeof(AVIOContext) isn't part of public ABI.

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

60e73066 02/14/2011 11:18 PM Anssi Hannula

mpegts: set st->disposition according to ISO 639 language descriptor

Signed-off-by: Mans Rullgard <>

f4c79d1e 02/09/2011 04:56 PM Vladimir Pantelic

mpegts: remove unused macro MAX_SCAN_PACKETS

Signed-off-by: Mans Rullgard <>

665132e6 01/30/2011 04:39 PM Vasyl' Vavrychuk

mpegts: remove get_pts duplicate of ff_parse_pes_pts.

Signed-off-by: Vasyl' Vavrychuk <>
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.

e8315e78 01/20/2011 01:42 PM Georgi Chorbadzhiyski

Set service_provider and service_name in mpegts demuxer

Set service_provider and service_name in mpegts demuxer, previously
name and provider_name were set but since the muxer uses service_provider
and service_name use them.

Signed-off-by: Mans Rullgard <>

cc9038e9 12/29/2010 12:45 PM Peter Ross

add ff_parse_mpeg2_descriptor; make MPEG2 descriptor parsing routines available to other modules.

Originally committed as revision 26125 to svn://

74f72620 11/29/2010 03:43 AM Baptiste Coudurier

In ts demuxer, if pes packet size is < ts packet, honor pes packet and skip padded data.
Fixes issue #2392.

Originally committed as revision 25841 to svn://

c538eb51 11/25/2010 12:55 AM Stephen D'Angelo

In TS demuxer, create the AVStream during pmt parsing if the pes stream does not
yet have it, this can happen if the pes stream contain data but no pes header
has been encoutered yet.
Patch by Stephen D'Angelo, SDAngelo at evertz dot com.

Originally committed as revision 25823 to svn://

b795ff97 11/25/2010 12:29 AM Baptiste Coudurier

In TS demuxer, keep the pmt filter open to parse all pmt sections,
based on patch by Stephen D'Angelo, SDAngelo at evertz dot com.

Originally committed as revision 25822 to svn://

8ee764b0 11/23/2010 01:10 AM Baptiste Coudurier

Remove some warnings

Originally committed as revision 25808 to svn://

175272cb 11/23/2010 01:04 AM Baptiste Coudurier

10l, fix memleak, forgot to free mp4_dec_config_descr

Originally committed as revision 25807 to svn://

798c6fac 11/23/2010 12:51 AM Baptiste Coudurier

In ts demuxer, support aac flexmux using extradata in iods, issue #2346

Originally committed as revision 25806 to svn://

915bfa33 11/02/2010 08:32 AM Janne Grunau

mpegts: support LATM syntax

Originally committed as revision 25643 to svn://

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

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

6b2b3376 08/09/2010 11:21 PM Aurelien Jacobs

get rid of MAX_STREAMS limit in mpegts

Originally committed as revision 24753 to svn://

8dd25c52 07/24/2010 08:43 AM Martin Storsjö

mpegts: Warn if unable to seek back

Originally committed as revision 24477 to svn://

b834becd 07/14/2010 05:28 PM Reimar Döffinger

Pass the composition and ancillary ID for DVB subtitles via extradata instead
of sub_id, this allows detecting when that information is not available and
just decode everything.
In addition extradata is required for many codecs and thus in contrast to
sub_id generally already passed on by any programs using libav*....

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

Fix grammar errors in documentation

Originally committed as revision 23904 to svn://

b74f67eb 05/18/2010 05:28 PM Janne Grunau

In ts demuxer, output pes packet as soon as they are complete.
This is needed for subtitles where packets are infrequent.
Patch by Janne Grunau, janne-ffmpeg at jannau dot net.

Originally committed as revision 23157 to svn://

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

0403c2e3 04/22/2010 08:34 PM Baptiste Coudurier

Disable LATM AAC in mpegts, this is not supported and produce too many
bug reports. Also warn the user about it.

Originally committed as revision 22947 to svn://

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

588af13f 03/15/2010 11:14 PM Aurelien Jacobs

rename av_program_add_stream_index to ff_program_add_stream_index
it is an internal function, not part of public API

Originally committed as revision 22561 to svn://

4837bb52 03/08/2010 11:46 PM Stefano Sabatini

Replace last occurrence of the deprecated match_ext() with

Originally committed as revision 22351 to svn://

0694a009 02/01/2010 11:30 PM Måns Rullgård

Fix build

Originally committed as revision 21602 to svn://

9125806e 02/01/2010 11:10 PM Alexis Ballier

Fix warnings about implicit function declaration when compiling rtpdec.c

Patch by Alexis Ballier, alexis D ballier A gmail

Originally committed as revision 21601 to svn://

10061cd6 01/13/2010 10:52 PM Baptiste Coudurier

remove useless type declarations

Originally committed as revision 21206 to svn://

609d8646 11/08/2009 03:27 AM Baptiste Coudurier

move code to avoid forward declaration

Originally committed as revision 20475 to svn://

b3f9f7a3 11/08/2009 03:17 AM Baptiste Coudurier

Let pmt override stream info when encoutered later in the ts file.
Do not set codec id based on pes start code, this is unreliable.
Fix gazeta-20090408-1456-aa.ts

Originally committed as revision 20474 to svn://

28f008a9 11/07/2009 11:44 PM Carl Eugen Hoyos

Support some LATM AAC streams (they can be decoded with MPlayer).

Originally committed as revision 20472 to svn://

e58992e4 10/29/2009 10:46 AM Francesco Lavra

Support demuxing teletext in DVB streams.

Original patch by Francesco Lavra, francescolavra interfree it

Originally committed as revision 20414 to svn://

45a49840 10/18/2009 08:11 PM Baptiste Coudurier

handle_packets takes number of packets as arg, avoid reading too much

Originally committed as revision 20288 to svn://

1303d62d 10/18/2009 08:08 PM Baptiste Coudurier

Increase max resync size, fix demuxing of dvgrab-2009.03.28_19-07-22.m2t
Print error when max resync size is reached and return EAGAIN instead of
INVALIDDATA, so user can retry if wanted.

Originally committed as revision 20286 to svn://

0096d766 10/10/2009 09:17 PM Carl Eugen Hoyos

Allow demuxing of E-AC3 (stream type 0x84) in MPEG-TS.

Originally committed as revision 20200 to svn://

63380b5e 10/05/2009 08:38 AM Ian Caulfield

Allow the combined TrueHD/AC3 tracks on Blu-Ray discs to be demuxed as two separate streams.

Patch by Ian Caulfield, ian D caulfield A gmail

Originally committed as revision 20168 to svn://

8bb7dda2 09/13/2009 08:08 PM Baptiste Coudurier

ensure pes buffer is set to avoid segv

Originally committed as revision 19836 to svn://

8956f680 09/13/2009 08:06 PM Baptiste Coudurier

reset pes state to skip after flushing, avoid segv with dvgrab-2009.03.28_19-07-22.m2t

Originally committed as revision 19835 to svn://

af8aae3f 09/06/2009 03:59 PM Ivan Schreter

disable new seeking code in mpeg-ts per #ifdef (use old read_seek by default)

Originally committed as revision 19788 to svn://

608be2ac 08/26/2009 10:33 PM Ivan Schreter

Cosmetic changes in read_seek* routines.

Originally committed as revision 19723 to svn://

5dd3707b 08/26/2009 10:10 PM Christian Schmidt

Decoder for LPCM as used in Bluray discs.

Patch by Christian Schmidt, schmidt digadd de

Originally committed as revision 19722 to svn://

c58b82a2 08/25/2009 08:47 AM Stephen Backway

Add Bluray Subtitle Support

Patch by Stephen Backway, stev391 A exemail D com D au

Originally committed as revision 19699 to svn://

cf5ec607 08/24/2009 09:42 PM Måns Rullgård

mpegts: change variable-length array to fixed length

The difference between 188 and 204 is not worth worrying about.

Originally committed as revision 19697 to svn://

a8dd8dc6 08/22/2009 04:07 PM Ivan Schreter

Use generic multi-stream key frame finding routine to implement read_seek2 and map
read_seek to read_seek2.

Originally committed as revision 19681 to svn://

0fd7cf11 07/30/2009 06:29 PM Baptiste Coudurier

init pes dts and pts to AV_NOPTS_VALUE, fix issue #1297

Originally committed as revision 19546 to svn://

d46c84ea 07/29/2009 02:17 AM Baptiste Coudurier

Stop parsing in read_header only after finding pmt, and
do not close pat filter so further pmt can be parsed.
Fix issue #1294.

Originally committed as revision 19530 to svn://

d23612ef 06/25/2009 07:01 PM Baptiste Coudurier

Only set CODEC_ID_PROBE when a packet from a stream having a PES header
is read.

Originally committed as revision 19273 to svn://

896f2b32 06/20/2009 06:09 AM Wolfram Gloger

add 0-termination in table, patch by Wolfram Gloger, wmglo at dent dot med dot uni-muenchen dot de

Originally committed as revision 19229 to svn://

b2984add 06/02/2009 07:53 AM Baptiste Coudurier

do not parse full header for private streams

Originally committed as revision 19075 to svn://

617c4616 06/02/2009 07:30 AM Baptiste Coudurier

correctly handle maximum streams limit

Originally committed as revision 19074 to svn://

1c4df2ab 06/02/2009 07:26 AM Baptiste Coudurier

export data from private streams

Originally committed as revision 19073 to svn://

4a01b3c7 05/31/2009 08:47 AM Baptiste Coudurier

initialize pes state to skip

Originally committed as revision 19029 to svn://

1f076543 05/31/2009 04:47 AM Baptiste Coudurier

print reg desc in a more friendly way

Originally committed as revision 19021 to svn://

ad183ff4 05/31/2009 04:45 AM Baptiste Coudurier

give context to dprintf

Originally committed as revision 19020 to svn://

fc72ad19 05/31/2009 04:41 AM Baptiste Coudurier

print registration descriptor in debug

Originally committed as revision 19019 to svn://

84c7d45e 05/31/2009 04:35 AM Baptiste Coudurier

0x7a is E-AC3 descriptor

Originally committed as revision 19017 to svn://

7103a77b 05/31/2009 04:10 AM Baptiste Coudurier

set codec_tag to stream type, so user can deal with it

Originally committed as revision 19013 to svn://

5b3c4c8a 05/31/2009 04:04 AM Baptiste Coudurier

set codec_tag to registration descriptor if present

Originally committed as revision 19012 to svn://

ffdbada6 05/31/2009 03:55 AM Baptiste Coudurier

add streams even if they are not present in PMT, fix #1092 and #835

Originally committed as revision 19011 to svn://

e6eb74d8 05/31/2009 03:46 AM Baptiste Coudurier

remove no longer needed fake dvbsub stream type

Originally committed as revision 19010 to svn://

f2c357d9 05/31/2009 03:45 AM Baptiste Coudurier


Originally committed as revision 19009 to svn://

ed68efad 05/31/2009 03:44 AM Baptiste Coudurier

remove no longer needed init

Originally committed as revision 19008 to svn://

6a2a50f8 05/31/2009 03:40 AM Baptiste Coudurier


Originally committed as revision 19007 to svn://

f42d1d82 05/31/2009 03:35 AM Baptiste Coudurier

simplify and merge

Originally committed as revision 19006 to svn://

08f94e98 05/31/2009 03:12 AM Baptiste Coudurier

move new_pes_av_stream to avoid forward declaration

Originally committed as revision 19005 to svn://

2fef7b53 05/31/2009 03:02 AM Baptiste Coudurier

remove defines

Originally committed as revision 19004 to svn://

8430f3ec 05/31/2009 02:56 AM Baptiste Coudurier

rework stream type and codec identification

Originally committed as revision 19003 to svn://

40b0872a 05/31/2009 12:33 AM Baptiste Coudurier

cosmetics, reindent, remove useless braces, whitespaces

Originally committed as revision 19002 to svn://

64ab5fa3 05/31/2009 12:31 AM Baptiste Coudurier

export all streams in ts demuxer

Originally committed as revision 19001 to svn://

6c7c2f7b 05/27/2009 01:29 AM Baptiste Coudurier

support AVDISCARD_ALL in mpegts demuxer

Originally committed as revision 18964 to svn://

bdfa9824 05/27/2009 12:56 AM Baptiste Coudurier

return error in mpegts_push_data and propagate it

Originally committed as revision 18963 to svn://

64d88215 05/27/2009 12:48 AM Baptiste Coudurier

10l, forgot ';', fix compilation

Originally committed as revision 18962 to svn://

a5685be5 05/27/2009 12:46 AM Baptiste Coudurier

check that len is not negative

Originally committed as revision 18961 to svn://

0c137557 05/27/2009 12:44 AM Baptiste Coudurier

demux whole PES packets from TS

Originally committed as revision 18960 to svn://

e9859317 05/26/2009 08:13 PM Baptiste Coudurier

move DEBUG define before include to get dprintf

Originally committed as revision 18956 to svn://

c950c25a 04/12/2009 09:04 AM Baptiste Coudurier

remove useless wrapper

Originally committed as revision 18465 to svn://

7b9677f6 04/12/2009 08:52 AM Baptiste Coudurier

remove useless wrapper

Originally committed as revision 18463 to svn://

ebcf352a 04/12/2009 03:08 AM Baptiste Coudurier

replace DEBUG_SI with DEBUG and use dprintf

Originally committed as revision 18458 to svn://

495b3766 04/12/2009 02:39 AM Baptiste Coudurier

Set stream type to ac3 if registration descriptor is present.
Based on patch by Nico Sabi, nicola dot sabbi at poste dot it

Originally committed as revision 18457 to svn://

4f1db48e 04/12/2009 02:32 AM Baptiste Coudurier

simplify registration descriptor parsing with bytestream get functions

Originally committed as revision 18456 to svn://

a4d2af9b 04/12/2009 02:19 AM Björn Axelsson

Ok, ts demuxer is more complicated than I thought
Revert r18454 and fix correctly #700
Stop parsing if end of buffer is reached while reading
patch by Björn Axelsson, bjorn dot axelsson at intinor dot se

Originally committed as revision 18455 to svn://

2b97246e 04/12/2009 01:37 AM Baptiste Coudurier

fix end of buffer check, fix hang_read_header.h264.ts

Originally committed as revision 18454 to svn://

5f01c125 03/22/2009 02:04 AM Baptiste Coudurier

avoid creating a new stream not referenced in pmt since it cannot be associated to a program, fix issue 835

Originally committed as revision 18137 to svn://

4c6b49bf 02/28/2009 06:35 PM Ivan Schreter

Change TS seeking so it returns position/timestamp of a key frame.

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17665 to svn://

08681191 02/10/2009 12:25 AM Aurelien Jacobs

use new metadata API in mpegts demuxer

Originally committed as revision 17112 to svn://

dcd913d9 02/06/2009 08:30 PM Jindřich Makovička

Fix minor memory leak.
Patch by Jindrich Makovicka, approved by mans.

Originally committed as revision 17021 to svn://