# HG changeset patch # User atmos4 # Date 1026240787 0 # Node ID 98c129b78f6306b416de412e9244b1a0a3bb660b # Parent ff8598fc2ad69f54bce016fe279cf0ef9719c417 Support for yuv410p as needed by ffsvq1. diff -r ff8598fc2ad6 -r 98c129b78f63 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Tue Jul 09 17:51:49 2002 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Tue Jul 09 18:53:07 2002 +0000 @@ -45,6 +45,9 @@ int vo_inited; int convert; int yuy2_support; +#if LIBAVCODEC_BUILD >= 4615 + int yvu9_support; +#endif } vd_ffmpeg_ctx; //#ifdef FF_POSTPROCESS @@ -77,6 +80,9 @@ if( (*((int*)arg)) == IMGFMT_IYUV ) return CONTROL_TRUE; if( (*((int*)arg)) == IMGFMT_I420 ) return CONTROL_TRUE; if( (*((int*)arg)) == IMGFMT_YUY2 && ctx->yuy2_support ) return CONTROL_TRUE; +#if LIBAVCODEC_BUILD >= 4615 + if( (*((int*)arg)) == IMGFMT_YVU9 && ctx->yvu9_support ) return CONTROL_TRUE; +#endif return CONTROL_FALSE; } return CONTROL_UNKNOWN; @@ -251,6 +257,9 @@ sh->disp_h = avctx->height; ctx->vo_inited=1; ctx->yuy2_support=(avctx->pix_fmt==PIX_FMT_YUV422P); +#if LIBAVCODEC_BUILD >= 4615 + ctx->yvu9_support=(avctx->pix_fmt==PIX_FMT_YUV410P); +#endif if (!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h, ctx->yuy2_support ? IMGFMT_YUY2 : IMGFMT_YV12)) return NULL;