diff options
author | Peter Schlaile <peter@schlaile.de> | 2007-12-25 23:31:07 +0300 |
---|---|---|
committer | Peter Schlaile <peter@schlaile.de> | 2007-12-25 23:31:07 +0300 |
commit | 6e812d5901bac112de3168ec530c42681216f6ec (patch) | |
tree | d46c34c17c4b15fe3949212b1e897b0bcde8f19e /source/blender/imbuf | |
parent | a3a88f9591683df6274e50249e350de5ba2dc7d6 (diff) |
== Sequencer ==
* Make Lock flag work for metastrips
* Fixes: flags are cleared on exit of metastrips
* Fixes (hopefully): red picture on big endian
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/anim.c | 7 |
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); |