Skip to content
Snippets Groups Projects
Commit edf7d15e authored by Alberto Delmás's avatar Alberto Delmás Committed by Michael Niedermayer
Browse files

avformat/asfdec: reset packet_time_start when asf_read_frame_header() failed

parent 76dad833
No related branches found
No related tags found
No related merge requests found
......@@ -1138,7 +1138,7 @@ static int asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt)
}
if (asf->packet_time_start == 0) {
if (asf_read_frame_header(s, pb) < 0) {
asf->packet_segments = 0;
asf->packet_time_start = asf->packet_segments = 0;
continue;
}
if (asf->stream_index < 0 ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment