Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/imbuf/intern/anim.c')
-rw-r--r--source/blender/imbuf/intern/anim.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/anim.c b/source/blender/imbuf/intern/anim.c
index 8a67c1d035f..e72d535815e 100644
--- a/source/blender/imbuf/intern/anim.c
+++ b/source/blender/imbuf/intern/anim.c
@@ -721,6 +721,7 @@ static ImBuf * ffmpeg_fetchibuf(struct anim * anim, int position) {
dst[0] + (anim->y - 1)*dstStride[0],
0, 0, 0 };
int i;
+ unsigned char* r;
sws_scale(anim->img_convert_ctx,
anim->pFrame->data,
@@ -731,8 +732,12 @@ static ImBuf * ffmpeg_fetchibuf(struct anim * anim, int position) {
dstStride2);
/* workaround: sws_scale sets alpha = 0... */
+
+ r = (unsigned char*) ibuf->rect;
+
for (i = 0; i < ibuf->x * ibuf->y; i++) {
- ibuf->rect[i] |= 0xff000000;
+ r[3] = 0xff;
+ r+=4;
}
av_free_packet(&packet);