mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
init pes dts and pts to AV_NOPTS_VALUE, fix issue #1297
Originally committed as revision 19546 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
155b0f00d4
commit
0fd7cf116b
@ -1061,6 +1061,8 @@ static PESContext *add_pes_stream(MpegTSContext *ts, int pid, int pcr_pid, int s
|
|||||||
pes->pcr_pid = pcr_pid;
|
pes->pcr_pid = pcr_pid;
|
||||||
pes->stream_type = stream_type;
|
pes->stream_type = stream_type;
|
||||||
pes->state = MPEGTS_SKIP;
|
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);
|
tss = mpegts_open_pes_filter(ts, pid, mpegts_push_data, pes);
|
||||||
if (!tss) {
|
if (!tss) {
|
||||||
av_free(pes);
|
av_free(pes);
|
||||||
|
Loading…
Reference in New Issue
Block a user