[FFmpeg-devel] [PATCH 1/2] dxva2_vc1: fix intensity compensation condition with interlaced fields

Michael Niedermayer michaelni at gmx.at
Fri Mar 7 16:08:29 CET 2014


On Fri, Mar 07, 2014 at 02:02:58PM +0100, Hendrik Leppkes wrote:
> ---
>  libavcodec/dxva2_vc1.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/dxva2_vc1.c b/libavcodec/dxva2_vc1.c
> index a86d7cd..88138e3 100644
> --- a/libavcodec/dxva2_vc1.c
> +++ b/libavcodec/dxva2_vc1.c
> @@ -43,7 +43,7 @@ static void fill_picture_parameters(AVCodecContext *avctx,
>      // determine if intensity compensation is needed
>      if (s->pict_type == AV_PICTURE_TYPE_P) {
>        if ((v->fcm == ILACE_FRAME && v->intcomp) || (v->fcm != ILACE_FRAME && v->mv_mode == MV_PMODE_INTENSITY_COMP)) {
> -        if (v->lumscale != 32 || v->lumshift != 0 || (s->picture_structure != PICT_FRAME && (v->lumscale2 != 32 && v->lumshift2 != 0)))
> +        if (v->lumscale != 32 || v->lumshift != 0 || (s->picture_structure != PICT_FRAME && (v->lumscale2 != 32 || v->lumshift2 != 0)))
>            intcomp = 1;
>        }
>      }

both patches applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140307/6a4d8590/attachment.asc>


More information about the ffmpeg-devel mailing list