Browse Source

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
tags/v0.5
Michael Niedermayer 16 years ago
parent
commit
ff9c8d7c6f
3 changed files with 4 additions and 3 deletions
  1. +1
    -0
      libavformat/avformat.h
  2. +1
    -1
      libavformat/mpeg.c
  3. +2
    -2
      libavformat/mpegts.c

+ 1
- 0
libavformat/avformat.h View File

@@ -187,6 +187,7 @@ typedef struct AVFormatParameters {
#define AVFMT_GLOBALHEADER 0x0040 /**< format wants global header */
#define AVFMT_NOTIMESTAMPS 0x0080 /**< format does not need / have any timestamps */
#define AVFMT_GENERIC_INDEX 0x0100 /**< use generic index building code */
#define AVFMT_TS_DISCONT 0x0200 /**< format allows timestamo discontinuities */

typedef struct AVOutputFormat {
const char *name;


+ 1
- 1
libavformat/mpeg.c View File

@@ -586,5 +586,5 @@ AVInputFormat mpegps_demuxer = {
NULL,
NULL, //mpegps_read_seek,
mpegps_read_dts,
.flags = AVFMT_SHOW_IDS,
.flags = AVFMT_SHOW_IDS|AVFMT_TS_DISCONT,
};

+ 2
- 2
libavformat/mpegts.c View File

@@ -1524,7 +1524,7 @@ AVInputFormat mpegts_demuxer = {
mpegts_read_close,
read_seek,
mpegts_get_pcr,
.flags = AVFMT_SHOW_IDS,
.flags = AVFMT_SHOW_IDS|AVFMT_TS_DISCONT,
};

AVInputFormat mpegtsraw_demuxer = {
@@ -1537,5 +1537,5 @@ AVInputFormat mpegtsraw_demuxer = {
mpegts_read_close,
read_seek,
mpegts_get_pcr,
.flags = AVFMT_SHOW_IDS,
.flags = AVFMT_SHOW_IDS|AVFMT_TS_DISCONT,
};

Loading…
Cancel
Save