Browse code

avformat/pmpdec: remove cur_dts timestamp hack

It appears the demuxer works fine without it

Fixes Ticket3534

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 5b19fc7aae986d6fa3d689f581b37e4bfba4f2d0)

Michael Niedermayer authored on 2014/04/21 07:58:24
Showing 1 changed files
... ...
@@ -160,10 +160,6 @@ static int pmp_packet(AVFormatContext *s, AVPacket *pkt)
160 160
     ret = av_get_packet(pb, pkt, pmp->packet_sizes[pmp->current_packet]);
161 161
     if (ret >= 0) {
162 162
         ret = 0;
163
-        // FIXME: this is a hack that should be removed once
164
-        // compute_pkt_fields() can handle timestamps properly
165
-        if (pmp->cur_stream == 0)
166
-            pkt->dts = s->streams[0]->cur_dts++;
167 163
         pkt->stream_index = pmp->cur_stream;
168 164
     }
169 165
     if (pmp->current_packet % pmp->audio_packets == 0)