Mercurial > mplayer.hg
changeset 30191:c2fc252b0d14
Avoid the error message "Unsupported PixelFormat -1" for ffh264 decoding
author | zuxy |
---|---|
date | Thu, 07 Jan 2010 04:59:50 +0000 |
parents | 561453831add |
children | e25e411fb220 |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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;