[Mplayer-cvslog] CVS: main/libmpcodecs vd_zlib.c,1.1,1.2
Alex Beregszaszi
alex at mplayer.dev.hu
Sat Mar 23 17:46:05 CET 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mplayer:/var/tmp.root/cvs-serv30621
Modified Files:
vd_zlib.c
Log Message:
moved get_image into decoder (Arpi's request)
Index: vd_zlib.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_zlib.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- vd_zlib.c 22 Mar 2002 21:20:50 -0000 1.1
+++ vd_zlib.c 23 Mar 2002 16:46:02 -0000 1.2
@@ -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);
}
@@ -103,6 +99,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;
More information about the MPlayer-cvslog
mailing list