diff imgconvert.c @ 7832:573f52f011c0 libavcodec

avcodec_find_best_pix_fmt() needs a 64bit mask as there are more than 32 pix_fmts.
author michael
date Mon, 08 Sep 2008 18:29:08 +0000
parents 635ed2559262
children 915bc657348f
line wrap: on
line diff
--- a/imgconvert.c	Mon Sep 08 18:18:49 2008 +0000
+++ b/imgconvert.c	Mon Sep 08 18:29:08 2008 +0000
@@ -772,7 +772,7 @@
     return bits;
 }
 
-static int avcodec_find_best_pix_fmt1(int pix_fmt_mask,
+static int avcodec_find_best_pix_fmt1(int64_t pix_fmt_mask,
                                       int src_pix_fmt,
                                       int has_alpha,
                                       int loss_mask)
@@ -797,7 +797,7 @@
     return dst_pix_fmt;
 }
 
-int avcodec_find_best_pix_fmt(int pix_fmt_mask, int src_pix_fmt,
+int avcodec_find_best_pix_fmt(int64_t pix_fmt_mask, int src_pix_fmt,
                               int has_alpha, int *loss_ptr)
 {
     int dst_pix_fmt, loss_mask, i;