CV_CAP_POS_FRAME issue at the end of videos (Bug #1335)
Description
With current implementation of cv_ffmpeg asking for a frame after the last key frame results in an error
on cv 2.3.1, line 834 of cap_ffmpeg_impl.hpp should use AVSEEK_FLAG_ANY rather than AVSEEK_FLAG_FRAME
in cv 2.2.0, line 744 of cap_ffmpeg.cpp should be:
int ret = av_seek_frame(ic, video_stream, timestamp, AVSEEK_FLAG_ANY);
rather than:
int ret = av_seek_frame(ic, video_stream, timestamp, 0);
Associated revisions
Merge pull request #1335 from alekcac:ios-build-fix
History
Updated by sebastien wybo over 13 years ago
- Status deleted (
Open)
Updated by Alexander Reshetnikov about 13 years ago
- Status set to Done
- (deleted custom field) set to fixed
Updated by Alexander Reshetnikov about 13 years ago
- Priority changed from High to Normal
- Target version set to 2.4.0
Updated by Andrey Kamaev over 12 years ago
- Category changed from highgui-images to highgui-video