Mercurial > libavcodec.hg
changeset 5810:3e5e2bafe35c libavcodec
Enable avpicture_deinterlace() for PIX_FMT_GRAY8.
Patch by Andrea Gualano, gualano T imavis O com
author | cehoyos |
---|---|
date | Thu, 11 Oct 2007 22:31:08 +0000 |
parents | 7301ea0ae221 |
children | 2926fc2a0396 |
files | imgconvert.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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],