[MPlayer-cvslog] r28595 - trunk/libmpcodecs/vd_ffmpeg.c

reimar subversion at mplayerhq.hu
Sun Feb 15 16:27:12 CET 2009


Author: reimar
Date: Sun Feb 15 16:27:12 2009
New Revision: 28595

Log:
Use PIX_FMT_NONE instead of -1

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Sun Feb 15 16:24:32 2009	(r28594)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Sun Feb 15 16:27:12 2009	(r28595)
@@ -899,7 +899,7 @@ static enum PixelFormat get_format(struc
         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];



More information about the MPlayer-cvslog mailing list