Negative AVIndexEntry::timestamp value
|Reported by:||s0m3||Owned by:|
|Blocking:||Reproduced by developer:||yes|
|Analyzed by developer:||no|
I'm developping a multimedia player based on FFmpeg library.
To do frame stepping, I need to associate frame numbers and frame times (timecodes).
If AVStream::nb_index_entries is != 0, I use AVIndexEntry structure, otherwise, I build an "index" manually.
I have a sample video (25fps, 60s, with timecode) where AVIndex entries are wrong.
index_entries.timestamp and index_entries.timestamp are negative. In fact, all following timestamps are correct except there's an offset of 2 so index_entries.timestamp is the correct timestamp of frame 8 not 10.
I checked timestamp values with another dedicated software (elecard StreamEye?) so ffmpeg is buggy here.
Let me know if you need any information.