Commit af980aa4 authored by Michael Niedermayer's avatar Michael Niedermayer

lavc/hevc_ps: fix PIX_FMT enums

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c8dd048a
...@@ -623,9 +623,9 @@ int ff_hevc_decode_nal_sps(HEVCContext *s) ...@@ -623,9 +623,9 @@ int ff_hevc_decode_nal_sps(HEVCContext *s)
if (sps->chroma_format_idc == 1) { if (sps->chroma_format_idc == 1) {
switch (sps->bit_depth) { switch (sps->bit_depth) {
case 8: sps->pix_fmt = PIX_FMT_YUV420P; break; case 8: sps->pix_fmt = AV_PIX_FMT_YUV420P; break;
case 9: sps->pix_fmt = PIX_FMT_YUV420P9; break; case 9: sps->pix_fmt = AV_PIX_FMT_YUV420P9; break;
case 10: sps->pix_fmt = PIX_FMT_YUV420P10; break; case 10: sps->pix_fmt = AV_PIX_FMT_YUV420P10; break;
default: default:
av_log(s->avctx, AV_LOG_ERROR, "Unsupported bit depth: %d\n", av_log(s->avctx, AV_LOG_ERROR, "Unsupported bit depth: %d\n",
sps->bit_depth); sps->bit_depth);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment