[FFmpeg-cvslog] r25202 - trunk/libavfilter/vf_yadif.c
bcoudurier
subversion
Sun Sep 26 02:56:27 CEST 2010
Author: bcoudurier
Date: Sun Sep 26 02:56:26 2010
New Revision: 25202
Log:
In yadif filter, use current frame when previous is missing,
better results for the first frame
Modified:
trunk/libavfilter/vf_yadif.c
Modified: trunk/libavfilter/vf_yadif.c
==============================================================================
--- trunk/libavfilter/vf_yadif.c Sun Sep 26 01:27:16 2010 (r25201)
+++ trunk/libavfilter/vf_yadif.c Sun Sep 26 02:56:26 2010 (r25202)
@@ -197,13 +197,12 @@ static void start_frame(AVFilterLink *li
yadif->cur = yadif->next;
yadif->next = picref;
- if (!yadif->prev)
- yadif->prev = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE |
- AV_PERM_REUSE, link->w, link->h);
-
if(!yadif->cur)
return;
+ if (!yadif->prev)
+ yadif->prev = avfilter_ref_buffer(yadif->cur, AV_PERM_READ);
+
yadif->out = avfilter_get_video_buffer(ctx->outputs[0], AV_PERM_WRITE | AV_PERM_PRESERVE |
AV_PERM_REUSE, link->w, link->h);
More information about the ffmpeg-cvslog
mailing list