summaryrefslogtreecommitdiffstats
path: root/libavformat/bit.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-25 05:35:38 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-25 05:37:22 +0200
commita5e84927962671c5ef26a29182f24e44648ef537 (patch)
tree040f112e1e8117b93dea3dac481fcda98a2b4ceb /libavformat/bit.c
parentfa15b1e7b94e86e548666d0d898469977cedc7c8 (diff)
downloadffmpeg-streaming-a5e84927962671c5ef26a29182f24e44648ef537.zip
ffmpeg-streaming-a5e84927962671c5ef26a29182f24e44648ef537.tar.gz
bit: set AVPacket.pos
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/bit.c')
-rw-r--r--libavformat/bit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/bit.c b/libavformat/bit.c
index 1fd011d..9d4fa8e 100644
--- a/libavformat/bit.c
+++ b/libavformat/bit.c
@@ -52,6 +52,7 @@ static int read_packet(AVFormatContext *s,
int sync;
uint16_t* src=buf;
int i, j, ret;
+ int64_t pos= avio_tell(pb);
if(url_feof(pb))
return AVERROR_EOF;
@@ -77,6 +78,7 @@ static int read_packet(AVFormatContext *s,
flush_put_bits(&pbo);
pkt->duration=1;
+ pkt->pos = pos;
return 0;
}
OpenPOWER on IntegriCloud