Change YUV format name

This commit is contained in:
jfmcarreira committed 2014-03-23 19:54:52 +00:00
1 parent 401b79f991
commit ecd98887f3
1 file changed
+2 -2
+2 -2
View File
@@ -113,7 +113,7 @@ Bool LibAvContextHandle::initAvFormat( char* filename, UInt& width, UInt& height
case YUV420p: case YUV420p:
av_dict_set( &format_opts, "pixel_format", av_get_pix_fmt_name( AV_PIX_FMT_YUV420P ), 0 ); av_dict_set( &format_opts, "pixel_format", av_get_pix_fmt_name( AV_PIX_FMT_YUV420P ), 0 );
break; break;
case YUV400: case GRAY:
av_dict_set( &format_opts, "pixel_format", av_get_pix_fmt_name( AV_PIX_FMT_GRAY8 ), 0 ); av_dict_set( &format_opts, "pixel_format", av_get_pix_fmt_name( AV_PIX_FMT_GRAY8 ), 0 );
break; break;
default: default:
@@ -177,7 +177,7 @@ Bool LibAvContextHandle::initAvFormat( char* filename, UInt& width, UInt& height
pixel_format = YUV420p; pixel_format = YUV420p;
break; break;
case AV_PIX_FMT_GRAY8: case AV_PIX_FMT_GRAY8:
pixel_format = YUV400; pixel_format = GRAY;
break; break;
default: default:
break; break;