Commit 9b3071d1 authored by romansh's avatar romansh

    * 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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2169 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2b3e6950
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment