[FFmpeg-cvslog] avformat/pmpdec: remove cur_dts timestamp hack

Michael Niedermayer git at videolan.org
Mon Apr 21 01:45:48 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Apr 21 00:58:24 2014 +0200| [5b19fc7aae986d6fa3d689f581b37e4bfba4f2d0] | committer: Michael Niedermayer

avformat/pmpdec: remove cur_dts timestamp hack

It appears the demuxer works fine without it

Fixes Ticket3534

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5b19fc7aae986d6fa3d689f581b37e4bfba4f2d0
---

 libavformat/pmpdec.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavformat/pmpdec.c b/libavformat/pmpdec.c
index 25a5c3e..d032837 100644
--- a/libavformat/pmpdec.c
+++ b/libavformat/pmpdec.c
@@ -160,10 +160,6 @@ static int pmp_packet(AVFormatContext *s, AVPacket *pkt)
     ret = av_get_packet(pb, pkt, pmp->packet_sizes[pmp->current_packet]);
     if (ret >= 0) {
         ret = 0;
-        // FIXME: this is a hack that should be removed once
-        // compute_pkt_fields() can handle timestamps properly
-        if (pmp->cur_stream == 0)
-            pkt->dts = s->streams[0]->cur_dts++;
         pkt->stream_index = pmp->cur_stream;
     }
     if (pmp->current_packet % pmp->audio_packets == 0)



More information about the ffmpeg-cvslog mailing list