[FFmpeg-trac] #1607(avformat:new): av_seek_frame() without AVSEEK_FLAG_ANY on mpg files returns success without seeking to a keyframe
FFmpeg
trac at avcodec.org
Sun Aug 5 17:07:05 CEST 2012
#1607: av_seek_frame() without AVSEEK_FLAG_ANY on mpg files returns success
without seeking to a keyframe
--------------------------------------+----------------------------------
Reporter: mbradshaw | Owner:
Type: defect | Status: new
Priority: normal | Component: avformat
Version: git-master | Keywords:
Blocked By: | Blocking:
Reproduced by developer: 0 | Analyzed by developer: 0
--------------------------------------+----------------------------------
The documentation of `av_seek_frame()` makes a contract that it seeks to a
keyframe if AVSEEK_FLAG_ANY is not set. mpg files break this contract by
not seeking to a keyframe but returning success.
Seeking in mpg should require AVSEEK_FLAG_ANY to be set in order for
success to be returned.
For context on how this came about, see this thread:
http://ffmpeg.org/pipermail/libav-user/2012-July/002468.html
I originally opened ticket #1575 but Don Moir pointed out this is more of
a bug than a lack of documentation.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1607>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list