changeset 28560:0549b7c6803d

Use PIX_FMT_NONE instead of -1
author reimar
date Sun, 15 Feb 2009 15:27:12 +0000
parents 60aba4efaa8f
children 9baca49e328c
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Sun Feb 15 15:24:32 2009 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sun Feb 15 15:27:12 2009 +0000
@@ -899,7 +899,7 @@
         assert(ctx->do_slices); //it is (vo_)ffmpeg bug if this fails
         avctx->slice_flags=SLICE_FLAG_CODED_ORDER|SLICE_FLAG_ALLOW_FIELD;
     }
-    for(i=0;fmt[i]!=-1;i++){
+    for(i=0;fmt[i]!=PIX_FMT_NONE;i++){
         mp_msg(MSGT_DECVIDEO, MSGL_INFO, MSGTR_MPCODECS_TryingPixfmt, i);
         if(init_vo(sh, fmt[i]) >= 0)
             return fmt[i];