1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

bit: set AVPacket.pos

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-09-25 05:35:38 +02:00
parent fa15b1e7b9
commit a5e8492796

View File

@ -52,6 +52,7 @@ static int read_packet(AVFormatContext *s,
int sync; int sync;
uint16_t* src=buf; uint16_t* src=buf;
int i, j, ret; int i, j, ret;
int64_t pos= avio_tell(pb);
if(url_feof(pb)) if(url_feof(pb))
return AVERROR_EOF; return AVERROR_EOF;
@ -77,6 +78,7 @@ static int read_packet(AVFormatContext *s,
flush_put_bits(&pbo); flush_put_bits(&pbo);
pkt->duration=1; pkt->duration=1;
pkt->pos = pos;
return 0; return 0;
} }