mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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
This commit is contained in:
parent
fb2e95c97a
commit
3a4f91f5ed
@ -1515,7 +1515,7 @@ static int av_seek_frame_generic(AVFormatContext *s,
|
|||||||
return ret;
|
return ret;
|
||||||
av_update_cur_dts(s, st, ie->timestamp);
|
av_update_cur_dts(s, st, ie->timestamp);
|
||||||
}else{
|
}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;
|
return ret;
|
||||||
}
|
}
|
||||||
for(i=0;; i++) {
|
for(i=0;; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user