summaryrefslogtreecommitdiff
path: root/libavformat/amr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-05-26 20:17:12 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-05-26 20:17:12 +0000
commit2692067a45e4cb4ce0028e170673f2b2f5039721 (patch)
tree19b10f28c74700113729a7ae6861c734e8bfab01 /libavformat/amr.c
parent4aa606ec179a7df514fe5839b7ab5e24b42145b8 (diff)
AVPacket.pos
Originally committed as revision 4314 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/amr.c')
-rw-r--r--libavformat/amr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/amr.c b/libavformat/amr.c
index 21f41b7619..64c387b5ee 100644
--- a/libavformat/amr.c
+++ b/libavformat/amr.c
@@ -154,7 +154,7 @@ static int amr_read_packet(AVFormatContext *s,
return AVERROR_IO;
}
pkt->stream_index = 0;
-
+ pkt->pos= url_ftell(&s->pb);
pkt->data[0]=toc;
read = get_buffer(&s->pb, pkt->data+1, size);
@@ -189,6 +189,7 @@ static int amr_read_packet(AVFormatContext *s,
}
pkt->stream_index = 0;
+ pkt->pos= url_ftell(&s->pb);
pkt->data[0]=toc;
read = get_buffer(&s->pb, pkt->data+1, size-1);