deps/media-playback: Add P010 to closest_format

Used by HDR media playback with hardware decode.
master
jpark37 2022-04-18 00:14:54 -07:00 committed by Jim
parent 6f3a29a3f8
commit 05b673381f
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ static enum AVPixelFormat closest_format(enum AVPixelFormat fmt)
#endif
return AV_PIX_FMT_YUVA444P;
case AV_PIX_FMT_P010LE:
return AV_PIX_FMT_P010LE;
case AV_PIX_FMT_RGBA:
case AV_PIX_FMT_BGRA:
case AV_PIX_FMT_BGR0: