X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmpegts.c;h=8c1c55705015ea8cf1c35fd6287b40d087bab733;hb=34aadeaa2c2ae2e84abde3cca0a8b1392b8294ac;hp=3f154796fa52a8ed50cc0a665fc2011eb99c22a6;hpb=d1c28e35300130f0ee28a3e5bbeb2cea403fad57;p=ffmpeg diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 3f154796fa5..8c1c5570501 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2132,7 +2132,7 @@ static int64_t mpegts_get_dts(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit) { MpegTSContext *ts = s->priv_data; - int64_t pos, timestamp; + int64_t pos; pos = ((*ppos + ts->raw_packet_size - 1 - ts->pos47) / ts->raw_packet_size) * ts->raw_packet_size + ts->pos47; ff_read_frame_flush(s); if (avio_seek(s->pb, pos, SEEK_SET) < 0)