summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_yadif.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-09-25 16:54:09 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-09-25 16:54:09 +0000
commit96a1459ed58ca0afef31327564f97bb28fa498c0 (patch)
tree79cc7a141c5708b6deb420b4515a32b5db2f0ff5 /libavfilter/vf_yadif.c
parentacbac56789750361b7d623cd85a136b58ce1fc31 (diff)
downloadffmpeg-streaming-96a1459ed58ca0afef31327564f97bb28fa498c0.zip
ffmpeg-streaming-96a1459ed58ca0afef31327564f97bb28fa498c0.tar.gz
Fix 0 vs 1 porting bug from mplayer.
Originally committed as revision 25197 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vf_yadif.c')
-rw-r--r--libavfilter/vf_yadif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index b2b2fe5..96cf73a 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -167,7 +167,7 @@ static AVFilterBufferRef *get_video_buffer(AVFilterLink *link, int perms, int w,
static void return_frame(AVFilterContext *ctx, int is_second){
YADIFContext *yadif = ctx->priv;
AVFilterLink *link= ctx->outputs[0];
- int tff = yadif->parity == -1 ? yadif->cur->video->top_field_first : yadif->parity;
+ int tff = yadif->parity == -1 ? yadif->cur->video->top_field_first : (yadif->parity^1);
if(is_second)
yadif->out = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE |
OpenPOWER on IntegriCloud