Opened 6 years ago

Closed 5 years ago

#2830 closed defect (invalid)

stronger ff_index_search_timestamp

Reported by: zgw860714 Owned by:
Priority: normal Component: avformat
Version: unspecified Keywords: seek
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: yes

Description

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.

Change History (2)

comment:1 Changed 5 years ago by zgw860714

  • Status changed from new to open

comment:2 Changed 5 years ago by zgw860714

  • Resolution set to invalid
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.