diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-07-30 18:29:06 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-07-30 18:29:06 +0000 |
commit | 0fd7cf116b1e649cfd5353c25b0ab373da147651 (patch) | |
tree | f3b28634d372ab3df1eb8002f58729909c1bbf98 /libavformat | |
parent | 155b0f00d492366019a9c6464a5ca5db65d7aeaf (diff) | |
download | ffmpeg-streaming-0fd7cf116b1e649cfd5353c25b0ab373da147651.zip ffmpeg-streaming-0fd7cf116b1e649cfd5353c25b0ab373da147651.tar.gz |
init pes dts and pts to AV_NOPTS_VALUE, fix issue #1297
Originally committed as revision 19546 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mpegts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index f6dff78..6c0c314 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -1061,6 +1061,8 @@ static PESContext *add_pes_stream(MpegTSContext *ts, int pid, int pcr_pid, int s pes->pcr_pid = pcr_pid; pes->stream_type = stream_type; pes->state = MPEGTS_SKIP; + pes->pts = AV_NOPTS_VALUE; + pes->dts = AV_NOPTS_VALUE; tss = mpegts_open_pes_filter(ts, pid, mpegts_push_data, pes); if (!tss) { av_free(pes); |