summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-11 21:30:16 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-11 21:30:16 +0000
commit71f9c4b48b428f518b3a4e46fe1ef2b780c37158 (patch)
tree187558ac69e1cc61846cb1c148f7b1e79eea8b94 /libmpcodecs
parent3e258ead9a598cd3df6cde27b3ece06bbb390282 (diff)
downloadmpv-71f9c4b48b428f518b3a4e46fe1ef2b780c37158.tar.bz2
mpv-71f9c4b48b428f518b3a4e46fe1ef2b780c37158.tar.xz
Print the number of the Unknow color format,
so verbose debug output could be a little more useful. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23770 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/img_format.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmpcodecs/img_format.c b/libmpcodecs/img_format.c
index 3b81c1f67e..f2e4bca51a 100644
--- a/libmpcodecs/img_format.c
+++ b/libmpcodecs/img_format.c
@@ -1,8 +1,10 @@
#include "config.h"
#include "img_format.h"
+#include "stdio.h"
const char *vo_format_name(int format)
{
+ static char unknow_format[20];
switch(format)
{
case IMGFMT_RGB1: return("RGB 1-bit");
@@ -66,5 +68,6 @@ const char *vo_format_name(int format)
case IMGFMT_XVMC_MOCO_MPEG2: return("MPEG1/2 Motion Compensation");
case IMGFMT_XVMC_IDCT_MPEG2: return("MPEG1/2 Motion Compensation and IDCT");
}
- return("Unknown");
+ snprintf(unknow_format,20,"Unknown 0x%04x",format);
+ return unknow_format;
}