[FFmpeg-trac] #2830(avformat:new): stronger ff_index_search_timestamp
FFmpeg
trac at avcodec.org
Fri Aug 2 03:13:59 CEST 2013
#2830: stronger ff_index_search_timestamp
-----------------------------------+---------------------------------------
Reporter: zgw860714 | Type: defect
Status: new | Priority: normal
Component: avformat | Version: unspecified
Keywords: seek | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 1 |
-----------------------------------+---------------------------------------
The end of ff_index_search_timestamp will search the AVINDEX_KEYFRAME。when
several frames from beginning is not keyframe and flags is
AVSEEK_FLAG_BACKWARD, the function maybe return -1.leading the
av_seek_file to fail.when i want seek the first frame or
play from stop,the stream will not seek
to the beginning.
I suggest fix the bug.Before return,if m is -1 and flags is BACKWARD, set
m to be 0.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2830>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list