mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-29 14:30:27 +00:00
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->packet_time_start == 0) {
|
||||||
if (asf_read_frame_header(s, pb) < 0) {
|
if (asf_read_frame_header(s, pb) < 0) {
|
||||||
asf->packet_segments = 0;
|
asf->packet_time_start = asf->packet_segments = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (asf->stream_index < 0 ||
|
if (asf->stream_index < 0 ||
|
||||||
|
Loading…
Reference in New Issue
Block a user