aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-24 17:34:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-25 01:57:25 +0200
commit1c2beff04a661b398266a8655c6e55ab47791002 (patch)
treea04785ec976707172e12e11cfea8789149e72e44 /libavformat/utils.c
parent72743aef03f7933f89ede398ca2c2a8a8ab90cd4 (diff)
downloadffmpeg-1c2beff04a661b398266a8655c6e55ab47791002.tar.gz
lavf: Set pos for all packets of AVSTREAM_PARSE_FULL_RAW files.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 4dde821bcf..5759f94838 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1216,6 +1216,9 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
out_pkt.dts = st->parser->dts;
out_pkt.pos = st->parser->pos;
+ if(st->need_parsing == AVSTREAM_PARSE_FULL_RAW)
+ out_pkt.pos = st->parser->frame_offset;
+
if (st->parser->key_frame == 1 ||
(st->parser->key_frame == -1 &&
st->parser->pict_type == AV_PICTURE_TYPE_I))