Mercurial > mplayer.hg
changeset 5276:8037d34ce806
moved get_image into decoder (Arpi's request)
author | alex |
---|---|
date | Sat, 23 Mar 2002 16:46:02 +0000 |
parents | 38f45e170f3b |
children | 7df9fc3308ac |
files | libmpcodecs/vd_zlib.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_zlib.c Sat Mar 23 16:36:42 2002 +0000 +++ b/libmpcodecs/vd_zlib.c Sat Mar 23 16:46:02 2002 +0000 @@ -73,10 +73,6 @@ if (!mpcodecs_config_vo(sh, ctx->width, ctx->height, IMGFMT_BGR|ctx->depth)) return(NULL); - ctx->mpi = mpcodecs_get_image(sh, MP_IMGTYPE_TEMP, MP_IMGFLAG_ALLOCATED, - ctx->width, ctx->height); - if (!ctx->mpi) - return(NULL); return(1); } @@ -104,6 +100,11 @@ if (len <= 0) return(NULL); // skipped frame + ctx->mpi = mpcodecs_get_image(sh, MP_IMGTYPE_TEMP, MP_IMGFLAG_ALLOCATED, + ctx->width, ctx->height); + if (!ctx->mpi) + return(NULL); + zstrm->next_in = data; zstrm->avail_in = len; zstrm->next_out = ctx->mpi->planes[0];