Mercurial > libavformat.hg
comparison mpegts.c @ 5121:84b8032a5227 libavformat
init pes dts and pts to AV_NOPTS_VALUE, fix issue #1297
author | bcoudurier |
---|---|
date | Thu, 30 Jul 2009 18:29:06 +0000 |
parents | c4e22fecdcaa |
children | 9c846d0a6803 |
comparison
equal
deleted
inserted
replaced
5120:bda20c95dc0d | 5121:84b8032a5227 |
---|---|
1059 pes->stream = ts->stream; | 1059 pes->stream = ts->stream; |
1060 pes->pid = pid; | 1060 pes->pid = pid; |
1061 pes->pcr_pid = pcr_pid; | 1061 pes->pcr_pid = pcr_pid; |
1062 pes->stream_type = stream_type; | 1062 pes->stream_type = stream_type; |
1063 pes->state = MPEGTS_SKIP; | 1063 pes->state = MPEGTS_SKIP; |
1064 pes->pts = AV_NOPTS_VALUE; | |
1065 pes->dts = AV_NOPTS_VALUE; | |
1064 tss = mpegts_open_pes_filter(ts, pid, mpegts_push_data, pes); | 1066 tss = mpegts_open_pes_filter(ts, pid, mpegts_push_data, pes); |
1065 if (!tss) { | 1067 if (!tss) { |
1066 av_free(pes); | 1068 av_free(pes); |
1067 return 0; | 1069 return 0; |
1068 } | 1070 } |