avformat/asfdec: reset packet_time_start when asf_read_frame_header() failed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
76dad833e9
commit
edf7d15eb0
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user