[MPlayer-cvslog] r30233 - trunk/libmpcodecs/vd_ffmpeg.c
zuxy
subversion at mplayerhq.hu
Thu Jan 7 05:59:50 CET 2010
Author: zuxy
Date: Thu Jan 7 05:59:50 2010
New Revision: 30233
Log:
Avoid the error message "Unsupported PixelFormat -1" for ffh264 decoding
Modified:
trunk/libmpcodecs/vd_ffmpeg.c
Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c Wed Jan 6 17:12:58 2010 (r30232)
+++ trunk/libmpcodecs/vd_ffmpeg.c Thu Jan 7 05:59:50 2010 (r30233)
@@ -207,6 +207,8 @@ void mp_msp_av_log_callback(void *ptr, i
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;
More information about the MPlayer-cvslog
mailing list