mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 12:55:16 +00:00
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
This commit is contained in:
parent
3e258ead9a
commit
71f9c4b48b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user