[Mplayer-cvslog] CVS: main xacodec.c,1.18,1.19
Alex Beregszaszi
alex at mplayer.dev.hu
Tue Oct 23 14:03:12 CEST 2001
- Previous message: [Mplayer-cvslog] CVS: main/postproc postprocess.c,1.20,1.21
- Next message: [Mplayer-cvslog] CVS: main Makefile,1.81,1.82 codec-cfg.c,1.42,1.43 codec-cfg.h,1.20,1.21 dec_audio.c,1.42,1.43
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv11695
Modified Files:
xacodec.c
Log Message:
some cosmetic and debugging changes
Index: xacodec.c
===================================================================
RCS file: /cvsroot/mplayer/main/xacodec.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- xacodec.c 23 Oct 2001 08:55:47 -0000 1.18
+++ xacodec.c 23 Oct 2001 12:02:45 -0000 1.19
@@ -148,7 +148,8 @@
if (mod_hdr->api_rev > XAVID_API_REV)
{
- mp_msg(MSGT_DECVIDEO, MSGL_FATAL, "xacodec: not supported api revision in %s\n", filename);
+ mp_msg(MSGT_DECVIDEO, MSGL_FATAL, "xacodec: not supported api revision (%d) in %s\n",
+ mod_hdr->api_rev, filename);
dlclose(codec_driver->file_handler);
return(0);
}
@@ -222,7 +223,11 @@
xacodec_driver = realloc(xacodec_driver, sizeof(struct xacodec_driver));
if (xacodec_driver == NULL)
+ {
+ mp_msg(MSGT_DECVIDEO, MSGL_FATAL, "xacodec: memory allocation error: %s\n",
+ strerror(errno));
return(0);
+ }
xacodec_driver->iq_func = NULL;
xacodec_driver->dec_func = NULL;
@@ -297,6 +302,12 @@
// free(codec_hdr.anim_hdr);
xacodec_driver->decinfo = malloc(sizeof(XA_DEC_INFO));
+ if (xacodec_driver->decinfo == NULL)
+ {
+ mp_msg(MSGT_DECVIDEO, MSGL_FATAL, "xacodec: memory allocation error: %s\n",
+ strerror(errno));
+ return(0);
+ }
xacodec_driver->decinfo->cmd = 0;
xacodec_driver->decinfo->skip_flag = 0;
xacodec_driver->decinfo->imagex = xacodec_driver->decinfo->xe = codec_hdr.x;
@@ -308,24 +319,24 @@
xacodec_driver->decinfo->xs = xacodec_driver->decinfo->ys = 0;
xacodec_driver->decinfo->special = 0;
xacodec_driver->decinfo->extra = codec_hdr.extra;
+ mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "decinfo->extra, filled by codec: 0x%08x [%s]\n",
+ &xacodec_driver->decinfo->extra, xacodec_driver->decinfo->extra);
// vidinfo->our_out_buffer = malloc(codec_hdr.y * codec_hdr.x * ((codec_hdr.depth+7)/8));
// vidinfo->our_out_buffer = malloc(codec_hdr.y * codec_hdr.x * codec_hdr.depth);
- xacodec_driver->image.out_fmt=out_format;
- xacodec_driver->image.bpp=codec_hdr.depth;
- xacodec_driver->image.width=codec_hdr.x;
- xacodec_driver->image.height=codec_hdr.y;
- xacodec_driver->image.mem=malloc(codec_hdr.y * codec_hdr.x * ((codec_hdr.depth+7)/8));
+ xacodec_driver->image.out_fmt = out_format;
+ xacodec_driver->image.bpp = codec_hdr.depth;
+ xacodec_driver->image.width = codec_hdr.x;
+ xacodec_driver->image.height = codec_hdr.y;
+ xacodec_driver->image.mem = malloc(codec_hdr.y * codec_hdr.x * ((codec_hdr.depth+7)/8));
if (xacodec_driver->image.mem == NULL)
{
- mp_msg(MSGT_DECVIDEO, MSGL_ERR, "cannot allocate memory for output: %s",
+ mp_msg(MSGT_DECVIDEO, MSGL_FATAL, "xacodec: memory allocation error: %s\n",
strerror(errno));
return(0);
}
- mp_msg(MSGT_DECVIDEO, MSGL_DBG2, "extra: %08x - %dx%d %dbit\n", codec_hdr.extra,
- codec_hdr.x, codec_hdr.y, codec_hdr.depth);
return(1);
}
- Previous message: [Mplayer-cvslog] CVS: main/postproc postprocess.c,1.20,1.21
- Next message: [Mplayer-cvslog] CVS: main Makefile,1.81,1.82 codec-cfg.c,1.42,1.43 codec-cfg.h,1.20,1.21 dec_audio.c,1.42,1.43
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list