Page MenuHome

fix29671.patch

fix29671.patch

Index: source/blender/imbuf/intern/anim_movie.c
===================================================================
--- source/blender/imbuf/intern/anim_movie.c (revision 42799)
+++ source/blender/imbuf/intern/anim_movie.c (working copy)
@@ -940,7 +940,10 @@ static ImBuf * ffmpeg_fetchibuf(struct anim * anim, int position,
"(index tells us)\n");
ffmpeg_decode_video_frame_scan(anim, pts_to_search);
- } else if (position != anim->curposition + 1) {
+ } else if (position == 0 && anim->curposition == -1) {
+ /* first frame without seeking special case... */
+ ffmpeg_decode_video_frame(anim);
+ } else {
long long pos;
int ret;
@@ -1017,12 +1020,6 @@ static ImBuf * ffmpeg_fetchibuf(struct anim * anim, int position,
if (ret >= 0) {
ffmpeg_decode_video_frame_scan(anim, pts_to_search);
}
- } else if (position == 0 && anim->curposition == -1) {
- /* first frame without seeking special case... */
- ffmpeg_decode_video_frame(anim);
- } else {
- av_log(anim->pFormatCtx, AV_LOG_DEBUG,
- "FETCH: no seek necessary, just continue...\n");
}
IMB_freeImBuf(anim->last_frame);

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
06/c6/da6f13620ec1237ac15f2e21e77d

Event Timeline