mirror of https://github.com/mpv-player/mpv
Use PIX_FMT_NONE instead of -1
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28595 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2a57385958
commit
c6ae3112f2
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue