# HG changeset patch # User cehoyos # Date 1192141868 0 # Node ID 3e5e2bafe35cfceea7a21e620e59ecde7ef0daea # Parent 7301ea0ae22133e897a0522ff724f11229b446de Enable avpicture_deinterlace() for PIX_FMT_GRAY8. Patch by Andrea Gualano, gualano T imavis O com diff -r 7301ea0ae221 -r 3e5e2bafe35c imgconvert.c --- a/imgconvert.c Thu Oct 11 22:18:38 2007 +0000 +++ b/imgconvert.c Thu Oct 11 22:31:08 2007 +0000 @@ -2824,7 +2824,8 @@ if (pix_fmt != PIX_FMT_YUV420P && pix_fmt != PIX_FMT_YUV422P && pix_fmt != PIX_FMT_YUV444P && - pix_fmt != PIX_FMT_YUV411P) + pix_fmt != PIX_FMT_YUV411P && + pix_fmt != PIX_FMT_GRAY8) return -1; if ((width & 3) != 0 || (height & 3) != 0) return -1; @@ -2845,6 +2846,9 @@ default: break; } + if (pix_fmt == PIX_FMT_GRAY8) { + break; + } } if (src == dst) { deinterlace_bottom_field_inplace(dst->data[i], dst->linesize[i],