diff options
author | Maksym Veremeyenko <verem@m1stereo.tv> | 2010-09-25 14:37:54 +0000 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2010-09-25 14:37:54 +0000 |
commit | b299c4e4d342bd7894a9fe9b805a5c0f8b6603a1 (patch) | |
tree | df573eae21b2ea23c2f1c22ea6d75f401e883d5b | |
parent | 1afab338575810acc5eb75c17c4adfb73504de10 (diff) | |
download | ffmpeg-b299c4e4d342bd7894a9fe9b805a5c0f8b6603a1.tar.gz |
Support deinterlacing of YUVJ422P in old deinterlacer.
Patch by Maksym Veremeyenko verem at m1stereo tv.
Originally committed as revision 25195 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/imgconvert.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 5e7f1fd570..879335c212 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -1177,6 +1177,7 @@ int avpicture_deinterlace(AVPicture *dst, const AVPicture *src, if (pix_fmt != PIX_FMT_YUV420P && pix_fmt != PIX_FMT_YUVJ420P && pix_fmt != PIX_FMT_YUV422P && + pix_fmt != PIX_FMT_YUVJ422P && pix_fmt != PIX_FMT_YUV444P && pix_fmt != PIX_FMT_YUV411P && pix_fmt != PIX_FMT_GRAY8) @@ -1193,6 +1194,7 @@ int avpicture_deinterlace(AVPicture *dst, const AVPicture *src, height >>= 1; break; case PIX_FMT_YUV422P: + case PIX_FMT_YUVJ422P: width >>= 1; break; case PIX_FMT_YUV411P: |