Commit a5e84927 authored by Michael Niedermayer's avatar Michael Niedermayer

bit: set AVPacket.pos

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fa15b1e7
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment