diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2003-08-26 22:05:12 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2003-08-26 22:05:12 +0000 |
commit | 47017dd870e6284d76a60cf0d065fc32a55803b1 (patch) | |
tree | 4521c2fd21ec6ca8a2df1cd7a6ff9f5990c570bb | |
parent | 1cb5f7fd4146193b896efe885d9c10eacfc4d326 (diff) | |
download | ffmpeg-47017dd870e6284d76a60cf0d065fc32a55803b1.tar.gz |
* 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.
Originally committed as revision 2169 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/imgconvert.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 4050ae7f3f..6324576472 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -2133,7 +2133,8 @@ int avpicture_deinterlace(AVPicture *dst, AVPicture *src, 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 @@ int avpicture_deinterlace(AVPicture *dst, AVPicture *src, case PIX_FMT_YUV422P: width >>= 1; break; + case PIX_FMT_YUV411P: + width >>= 2; + break; default: break; } |