[FFmpeg-devel] [PATCH] avfilter/vf_tinterlace: fix incorrect field order in interlacex2 mode

Aleksey Vasenev margtu-fivt at ya.ru
Wed Nov 12 23:40:12 CET 2014


Signed-off-by: Aleksey Vasenev <margtu-fivt at ya.ru>
---
 libavfilter/vf_tinterlace.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c
index 6bc55b5..42726c6 100644
--- a/libavfilter/vf_tinterlace.c
+++ b/libavfilter/vf_tinterlace.c
@@ -345,17 +345,17 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *picref)
             out->pts = cur->pts + next->pts;
         else
             out->pts = AV_NOPTS_VALUE;
-        /* write current frame second field lines into the second field of the new frame */
+        /* write current frame second field lines into the first field of the new frame */
         copy_picture_field(out->data, out->linesize,
                            (const uint8_t **)cur->data, cur->linesize,
                            inlink->format, inlink->w, inlink->h,
-                           tff ? FIELD_LOWER : FIELD_UPPER, 1, tff ? FIELD_LOWER : FIELD_UPPER,
+                           tff ? FIELD_LOWER : FIELD_UPPER, 1, tff ? FIELD_UPPER : FIELD_LOWER,
                            tinterlace->flags);
-        /* write next frame first field lines into the first field of the new frame */
+        /* write next frame first field lines into the second field of the new frame */
         copy_picture_field(out->data, out->linesize,
                            (const uint8_t **)next->data, next->linesize,
                            inlink->format, inlink->w, inlink->h,
-                           tff ? FIELD_UPPER : FIELD_LOWER, 1, tff ? FIELD_UPPER : FIELD_LOWER,
+                           tff ? FIELD_UPPER : FIELD_LOWER, 1, tff ? FIELD_LOWER : FIELD_UPPER,
                            tinterlace->flags);
         break;
     default:
-- 
1.9.4.msysgit.2



More information about the ffmpeg-devel mailing list