Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 30191:c2fc252b0d14
Avoid the error message "Unsupported PixelFormat -1" for ffh264 decoding
author | zuxy |
---|---|
date | Thu, 07 Jan 2010 04:59:50 +0000 |
parents | 7470ba76f228 |
children | bbb6ebec87a0 |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Wed Jan 06 16:12:58 2010 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Thu Jan 07 04:59:50 2010 +0000 @@ -207,6 +207,8 @@ static void set_format_params(struct AVCodecContext *avctx, enum PixelFormat fmt){ int imgfmt; + if (fmt == PIX_FMT_NONE) + return; imgfmt = pixfmt2imgfmt(fmt); if (IMGFMT_IS_XVMC(imgfmt) || IMGFMT_IS_VDPAU(imgfmt)) { sh_video_t *sh = avctx->opaque;