diff options
author | Alberto Delmás <adelmas@gmail.com> | 2013-11-24 20:32:31 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-24 20:33:26 +0100 |
commit | edf7d15eb04ff7eb466bc5ff61e0b848b4be402d (patch) | |
tree | 33647af4c5006be10e789aa64c2a7990bcb76928 /libavformat/asfdec.c | |
parent | 76dad833e96c2cf27cf31e22e8e9f67d53bdbd97 (diff) | |
download | ffmpeg-edf7d15eb04ff7eb466bc5ff61e0b848b4be402d.tar.gz |
avformat/asfdec: reset packet_time_start when asf_read_frame_header() failed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/asfdec.c')
-rw-r--r-- | libavformat/asfdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 234838eeaf..e4df32f4b5 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -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 || |