Mercurial > libavcodec.hg
changeset 1425:f53d31c5eac9 libavcodec
* ffmpeg was *silently* rejecting to deinterlace NTSC DV. The problem
is generic for any video with yuv411. Seems like a trivial fix,
but we really have to clean up all of the pix_fmt business a bit more.
author | romansh |
---|---|
date | Tue, 26 Aug 2003 22:05:12 +0000 |
parents | 39ebefd82728 |
children | b0f89a7855aa |
files | imgconvert.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/imgconvert.c Tue Aug 26 20:14:28 2003 +0000 +++ b/imgconvert.c Tue Aug 26 22:05:12 2003 +0000 @@ -2133,7 +2133,8 @@ if (pix_fmt != PIX_FMT_YUV420P && pix_fmt != PIX_FMT_YUV422P && - pix_fmt != PIX_FMT_YUV444P) + pix_fmt != PIX_FMT_YUV444P && + pix_fmt != PIX_FMT_YUV411P) return -1; if ((width & 3) != 0 || (height & 3) != 0) return -1; @@ -2148,6 +2149,9 @@ case PIX_FMT_YUV422P: width >>= 1; break; + case PIX_FMT_YUV411P: + width >>= 2; + break; default: break; }