Mercurial > libavformat.hg
comparison mpegts.c @ 367:3fca8e9142a4 libavformat
avsync patch by (Gildas Bazin <gbazin at altern dot org>)
author | michael |
---|---|
date | Fri, 20 Feb 2004 14:39:15 +0000 |
parents | 0c1b489c96bf |
children | 0d92246d3644 |
comparison
equal
deleted
inserted
replaced
366:cbcbaeff1f2c | 367:3fca8e9142a4 |
---|---|
834 AVPacket *pkt = ts->pkt; | 834 AVPacket *pkt = ts->pkt; |
835 if (pes->st && av_new_packet(pkt, len) == 0) { | 835 if (pes->st && av_new_packet(pkt, len) == 0) { |
836 memcpy(pkt->data, p, len); | 836 memcpy(pkt->data, p, len); |
837 pkt->stream_index = pes->st->index; | 837 pkt->stream_index = pes->st->index; |
838 pkt->pts = pes->pts; | 838 pkt->pts = pes->pts; |
839 pkt->dts = pes->dts; | |
839 /* reset pts values */ | 840 /* reset pts values */ |
840 pes->pts = AV_NOPTS_VALUE; | 841 pes->pts = AV_NOPTS_VALUE; |
841 pes->dts = AV_NOPTS_VALUE; | 842 pes->dts = AV_NOPTS_VALUE; |
842 ts->stop_parse = 1; | 843 ts->stop_parse = 1; |
843 return; | 844 return; |