CV_CAP_POS_FRAME issue at the end of videos (Bug #1335)


Added by sebastien wybo over 13 years ago. Updated over 12 years ago.


Status:Done Start date:
Priority:Normal Due date:
Assignee:Alexander Reshetnikov % Done:

0%

Category:highgui-video
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision 7cefb6f5
Added by Roman Donchenko over 11 years ago

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

Also available in: Atom PDF