diff options
Diffstat (limited to 'libavformat/serdec.c')
-rw-r--r-- | libavformat/serdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/serdec.c b/libavformat/serdec.c index fa2de32fd5..fe185cabd9 100644 --- a/libavformat/serdec.c +++ b/libavformat/serdec.c @@ -110,7 +110,7 @@ static int ser_read_packet(AVFormatContext *s, AVPacket *pkt) return AVERROR_EOF; ret = av_get_packet(s->pb, pkt, s->packet_size); - pkt->pts = pkt->dts = (pkt->pos - s->internal->data_offset) / s->packet_size; + pkt->pts = pkt->dts = (pkt->pos - ffformatcontext(s)->data_offset) / s->packet_size; pkt->stream_index = 0; if (ret < 0) |