Commit 75c3e54d authored by Hendrik Leppkes's avatar Hendrik Leppkes

asfdec: fix FATE seek test

parent c2f861ca
......@@ -1538,7 +1538,6 @@ static int64_t asf_read_pts(AVFormatContext *s, int stream_index,
pts = pkt->dts;
av_packet_unref(pkt);
if (pkt->flags & AV_PKT_FLAG_KEY) {
i = pkt->stream_index;
......@@ -1552,9 +1551,12 @@ static int64_t asf_read_pts(AVFormatContext *s, int stream_index,
pos - start_pos[i] + 1, AVINDEX_KEYFRAME);
start_pos[i] = asf_st->packet_pos + 1;
if (pkt->stream_index == stream_index)
if (pkt->stream_index == stream_index) {
av_packet_unref(pkt);
break;
}
}
av_packet_unref(pkt);
}
*ppos = pos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment