changeset 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 8195c970d077
children 52d04dea9491
files avcodec.h imgconvert.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Mon Sep 08 18:18:49 2008 +0000
+++ b/avcodec.h	Mon Sep 08 18:29:08 2008 +0000
@@ -2444,7 +2444,7 @@
  * @param[out] loss_ptr Combination of flags informing you what kind of losses will occur.
  * @return The best pixel format to convert to or -1 if none was found.
  */
-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);
 
 
--- 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;