]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_cavlc.c
lavfi/hflip: copy palette data in start_frame()
[ffmpeg] / libavcodec / h264_cavlc.c
index baddd368008682502ce97c0b3ffa5398ccaea87a..a4debade2e01cabc197171613a3379641179a2ab 100644 (file)
@@ -765,8 +765,8 @@ decode_intra_mb:
 
     if(IS_INTRA_PCM(mb_type)){
         unsigned int x;
-        static const uint16_t mb_sizes[4] = {256,384,512,768};
-        const int mb_size = mb_sizes[h->sps.chroma_format_idc]*h->sps.bit_depth_luma >> 3;
+        const int mb_size = ff_h264_mb_sizes[h->sps.chroma_format_idc] *
+                            h->sps.bit_depth_luma >> 3;
 
         // We assume these blocks are very rare so we do not optimize it.
         align_get_bits(&s->gb);