From 3a4f91f5ed62fe76578b0d321dd844df7e0c09c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Mon, 9 Mar 2009 12:06:31 +0000 Subject: [PATCH] 100l, to start reading from the first frame we must seek to data_offset, not 0 in av_seek_frame_generic. Originally committed as revision 17905 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index baf89c999c..43de101e39 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1515,7 +1515,7 @@ static int av_seek_frame_generic(AVFormatContext *s, return ret; av_update_cur_dts(s, st, ie->timestamp); }else{ - if ((ret = url_fseek(s->pb, 0, SEEK_SET)) < 0) + if ((ret = url_fseek(s->pb, s->data_offset, SEEK_SET)) < 0) return ret; } for(i=0;; i++) {