summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd_dmo.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-04-26 18:46:18 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-04-26 18:46:18 +0300
commit9a34ae4fd05226feb5b82573a4283c3cd8586b8a (patch)
tree157e9ea076c46fe37e626704a7b81c6e8b2a6db3 /libmpcodecs/vd_dmo.c
parent8df340271e868252e7398307e126ea12083d426b (diff)
parent91a84df7d0b19ca510a78191233f17c2d7691b95 (diff)
downloadmpv-9a34ae4fd05226feb5b82573a4283c3cd8586b8a.tar.bz2
mpv-9a34ae4fd05226feb5b82573a4283c3cd8586b8a.tar.xz
Merge svn changes up to r31050
Diffstat (limited to 'libmpcodecs/vd_dmo.c')
-rw-r--r--libmpcodecs/vd_dmo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpcodecs/vd_dmo.c b/libmpcodecs/vd_dmo.c
index 9f9c6a7a80..31d9f1e351 100644
--- a/libmpcodecs/vd_dmo.c
+++ b/libmpcodecs/vd_dmo.c
@@ -82,7 +82,7 @@ static int init(sh_video_t *sh){
if (sh->disp_w & 3)
{
ctx->stride = ((sh->disp_w * 3) + 3) & ~3;
- ctx->buffer = memalign(64, ctx->stride * sh->disp_h);
+ ctx->buffer = av_malloc(ctx->stride * sh->disp_h);
}
default:
DMO_VideoDecoder_SetDestFmt(ctx->decoder,out_fmt&255,0); // RGB/BGR
@@ -96,6 +96,7 @@ static int init(sh_video_t *sh){
static void uninit(sh_video_t *sh){
struct context *ctx = sh->context;
DMO_VideoDecoder_Destroy(ctx->decoder);
+ av_free(ctx->buffer);
free(ctx);
sh->context = NULL;
}