diff --git a/libmpcodecs/img_format.c b/libmpcodecs/img_format.c index e4c9309229..ae6f83669d 100644 --- a/libmpcodecs/img_format.c +++ b/libmpcodecs/img_format.c @@ -22,6 +22,7 @@ char *vo_format_name(int format) case IMGFMT_CLPL: return("Planar CLPL"); case IMGFMT_Y800: return("Planar Y800"); case IMGFMT_Y8: return("Planar Y8"); + case IMGFMT_NV12: return("Planar NV12"); case IMGFMT_IUYV: return("Packed IUYV"); case IMGFMT_IY41: return("Packed IY41"); case IMGFMT_IYU1: return("Packed IYU1"); diff --git a/libmpcodecs/img_format.h b/libmpcodecs/img_format.h index 6dd00a2060..321b9c3c37 100644 --- a/libmpcodecs/img_format.h +++ b/libmpcodecs/img_format.h @@ -37,6 +37,7 @@ #define IMGFMT_CLPL 0x4C504C43 #define IMGFMT_Y800 0x30303859 #define IMGFMT_Y8 0x20203859 +#define IMGFMT_NV12 0x3231564E /* Packed YUV Formats */