Fix pkt->pos to really point at start of packet for mtv audio packets.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 28 Jun 2008 08:59:02 +0000 (08:59 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 28 Jun 2008 08:59:02 +0000 (08:59 +0000)
Originally committed as revision 14019 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mtv.c

index 557846f..7f99bd6 100644 (file)
@@ -148,6 +148,7 @@ static int mtv_read_packet(AVFormatContext *s, AVPacket *pkt)
             return AVERROR(EIO);
 
         mtv->audio_packet_count++;
+        pkt->pos -= MTV_AUDIO_PADDING_SIZE;
         pkt->stream_index = AUDIO_SID;
 
     }else