diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-03-09 12:06:31 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-03-09 12:06:31 +0000 |
commit | 3a4f91f5ed62fe76578b0d321dd844df7e0c09c8 (patch) | |
tree | f813ca6e5bf662d7e4b1d55e73385d46d3c1e996 | |
parent | fb2e95c97a0094fc981ac07485ff44297e61e5c7 (diff) | |
download | ffmpeg-3a4f91f5ed62fe76578b0d321dd844df7e0c09c8.tar.gz |
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
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |