diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-15 15:27:12 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-15 15:27:12 +0000 |
commit | c6ae3112f28364cf9b397f48cba03bba6d984182 (patch) | |
tree | f28833c8585381dac7779f178f65c31b9c2b778f | |
parent | 2a57385958cf154ae6af2c684b5b5fa037a981ab (diff) |
Use PIX_FMT_NONE instead of -1
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28595 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 9acdc0730d..41976b8dcd 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -899,7 +899,7 @@ static enum PixelFormat get_format(struct AVCodecContext *avctx, 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]; |