changeset 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 bda20c95dc0d
children 6ea4f08de89a
files mpegts.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegts.c	Thu Jul 30 15:05:33 2009 +0000
+++ b/mpegts.c	Thu Jul 30 18:29:06 2009 +0000
@@ -1061,6 +1061,8 @@
     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);