[FFmpeg-cvslog] avformat/asfdec: reset packet_time_start when asf_read_frame_header() failed

Alberto Delmás git at videolan.org
Sun Nov 24 20:50:55 CET 2013


ffmpeg | branch: master | Alberto Delmás <adelmas at gmail.com> | Sun Nov 24 20:32:31 2013 +0100| [edf7d15eb04ff7eb466bc5ff61e0b848b4be402d] | committer: Michael Niedermayer

avformat/asfdec: reset packet_time_start when asf_read_frame_header() failed

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=edf7d15eb04ff7eb466bc5ff61e0b848b4be402d
---

 libavformat/asfdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 234838e..e4df32f 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 ||



More information about the ffmpeg-cvslog mailing list