Commit a8b5f52a authored by bcoudurier's avatar bcoudurier

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19546 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 54725c74
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment