Page Menu
Home
Search
Configure Global Search
Log In
Files
F20222
fix29671.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Sergey Sharybin (sergey)
Nov 13 2013, 4:23 PM
Size
1 KB
Subscribers
None
fix29671.patch
View Options
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
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
06/c6/da6f13620ec1237ac15f2e21e77d
Event Timeline
Log In to Comment