Commit 96a1459e authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Fix 0 vs 1 porting bug from mplayer.

Originally committed as revision 25197 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent acbac567
...@@ -167,7 +167,7 @@ static AVFilterBufferRef *get_video_buffer(AVFilterLink *link, int perms, int w, ...@@ -167,7 +167,7 @@ static AVFilterBufferRef *get_video_buffer(AVFilterLink *link, int perms, int w,
static void return_frame(AVFilterContext *ctx, int is_second){ static void return_frame(AVFilterContext *ctx, int is_second){
YADIFContext *yadif = ctx->priv; YADIFContext *yadif = ctx->priv;
AVFilterLink *link= ctx->outputs[0]; 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) if(is_second)
yadif->out = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE | yadif->out = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE |
......
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