aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/flvdec.c
diff options
context:
space:
mode:
authorSuman- <sumankancherla-at-google.com@ffmpeg.org>2016-10-18 15:13:23 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2016-10-26 02:12:18 +0200
commita81494b60337027067c00e6f8501a61ae1a2d05e (patch)
treebd2132a4ce0d427aec2156648d97daa91305a294 /libavformat/flvdec.c
parent03a6feb2137d14bc55a8fb9d9fca94bdaf0a7b16 (diff)
downloadffmpeg-a81494b60337027067c00e6f8501a61ae1a2d05e.tar.gz
lavf/flvdec: init AVPacket::pos to FLVTAG offset
Current code doesn't initialize AVPacket::pos. Made it point to FLVTAG so flv_read_packet can decode from pos Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r--libavformat/flvdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 0afeba58ba..68ab6805d4 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -1163,6 +1163,7 @@ retry_duration:
pkt->dts = dts;
pkt->pts = pts == AV_NOPTS_VALUE ? dts : pts;
pkt->stream_index = st->index;
+ pkt->pos = pos;
if (flv->new_extradata[stream_type]) {
uint8_t *side = av_packet_new_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA,
flv->new_extradata_size[stream_type]);