Browse Source

bit: set AVPacket.pos

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 13 years ago
parent
commit
a5e8492796
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/bit.c

+ 2
- 0
libavformat/bit.c View File

@@ -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;
}



Loading…
Cancel
Save