Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2011/09/25 12:35:38... | ... |
@@ -52,6 +52,7 @@ static int read_packet(AVFormatContext *s, |
52 | 52 |
int sync; |
53 | 53 |
uint16_t* src=buf; |
54 | 54 |
int i, j, ret; |
55 |
+ int64_t pos= avio_tell(pb); |
|
55 | 56 |
|
56 | 57 |
if(url_feof(pb)) |
57 | 58 |
return AVERROR_EOF; |
... | ... |
@@ -77,6 +78,7 @@ static int read_packet(AVFormatContext *s, |
77 | 77 |
flush_put_bits(&pbo); |
78 | 78 |
|
79 | 79 |
pkt->duration=1; |
80 |
+ pkt->pos = pos; |
|
80 | 81 |
return 0; |
81 | 82 |
} |
82 | 83 |
|