]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_deshake.c
ff: fix case where image does not have alpha channel
[ffmpeg] / libavfilter / vf_deshake.c
index e86d5bc61e6763574a1494c158076b68c5c15aa4..0444de09de070f37e6bc5203544bcd5a693418a0 100644 (file)
@@ -59,8 +59,8 @@
 
 #include "transform.h"
 
-#define CHROMA_WIDTH(link)  -((-link->w) >> av_pix_fmt_descriptors[link->format].log2_chroma_w)
-#define CHROMA_HEIGHT(link) -((-link->h) >> av_pix_fmt_descriptors[link->format].log2_chroma_h)
+#define CHROMA_WIDTH(link)  -((-link->w) >> av_pix_fmt_desc_get(link->format)->log2_chroma_w)
+#define CHROMA_HEIGHT(link) -((-link->h) >> av_pix_fmt_desc_get(link->format)->log2_chroma_h)
 
 enum SearchMethod {
     EXHAUSTIVE,        ///< Search all possible positions