summaryrefslogtreecommitdiff
path: root/libavformat/mtv.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-06-28 08:59:02 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-06-28 08:59:02 +0000
commit34bfe875d51b138abe8f5537c90d5ab2c9366312 (patch)
tree130e0f3bcbcb10f57edfd1549466baf5694f808d /libavformat/mtv.c
parent6f557c6a363560c4536e57d09bfb9d07b6e8409b (diff)
Fix pkt->pos to really point at start of packet for mtv audio packets.
Originally committed as revision 14019 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mtv.c')
-rw-r--r--libavformat/mtv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mtv.c b/libavformat/mtv.c
index 557846f6eb..7f99bd65bd 100644
--- a/libavformat/mtv.c
+++ b/libavformat/mtv.c
@@ -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