[FFmpeg-cvslog] lavc/hevc_ps: fix PIX_FMT enums

Michael Niedermayer git at videolan.org
Tue Oct 15 23:53:00 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 12 15:00:38 2013 +0200| [af980aa4f68e49695c25c6a7cdaa175ec8cba2f3] | committer: Michael Niedermayer

lavc/hevc_ps: fix PIX_FMT enums

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=af980aa4f68e49695c25c6a7cdaa175ec8cba2f3
---

 libavcodec/hevc_ps.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index 5f0b52d..84d53ab 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -623,9 +623,9 @@ int ff_hevc_decode_nal_sps(HEVCContext *s)
 
     if (sps->chroma_format_idc == 1) {
         switch (sps->bit_depth) {
-        case 8:  sps->pix_fmt = PIX_FMT_YUV420P;   break;
-        case 9:  sps->pix_fmt = PIX_FMT_YUV420P9;  break;
-        case 10: sps->pix_fmt = PIX_FMT_YUV420P10; break;
+        case 8:  sps->pix_fmt = AV_PIX_FMT_YUV420P;   break;
+        case 9:  sps->pix_fmt = AV_PIX_FMT_YUV420P9;  break;
+        case 10: sps->pix_fmt = AV_PIX_FMT_YUV420P10; break;
         default:
             av_log(s->avctx, AV_LOG_ERROR, "Unsupported bit depth: %d\n",
                    sps->bit_depth);



More information about the ffmpeg-cvslog mailing list