Commit ce1b1bda authored by Laurent Aimar's avatar Laurent Aimar

Cosmetics.

parent 4e57bfa7
...@@ -1567,9 +1567,7 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic ) ...@@ -1567,9 +1567,7 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
RenderLinear( p_filter, pp_outpic[1], p_pic, p_pic->b_top_field_first ); RenderLinear( p_filter, pp_outpic[1], p_pic, p_pic->b_top_field_first );
#endif #endif
msg_Err( p_filter, "doubling the frame rate is not supported yet" ); msg_Err( p_filter, "doubling the frame rate is not supported yet" );
picture_Release( p_pic_dst ); goto drop;
picture_Release( p_pic );
return NULL;
case DEINTERLACE_MEAN: case DEINTERLACE_MEAN:
RenderMean( p_filter, p_pic_dst, p_pic ); RenderMean( p_filter, p_pic_dst, p_pic );
...@@ -1585,26 +1583,25 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic ) ...@@ -1585,26 +1583,25 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
case DEINTERLACE_YADIF: case DEINTERLACE_YADIF:
if( RenderYadif( p_filter, p_pic_dst, p_pic, 0, 0 ) ) if( RenderYadif( p_filter, p_pic_dst, p_pic, 0, 0 ) )
{ goto drop;
picture_Release( p_pic_dst );
picture_Release( p_pic );
return NULL;
}
break; break;
case DEINTERLACE_YADIF2X: case DEINTERLACE_YADIF2X:
msg_Err( p_filter, "doubling the frame rate is not supported yet" ); msg_Err( p_filter, "doubling the frame rate is not supported yet" );
//RenderYadif( p_vout, pp_outpic[0], p_pic, 0, !p_pic->b_top_field_first ); //RenderYadif( p_vout, pp_outpic[0], p_pic, 0, !p_pic->b_top_field_first );
//RenderYadif( p_vout, pp_outpic[1], p_pic, 1, p_pic->b_top_field_first ); //RenderYadif( p_vout, pp_outpic[1], p_pic, 1, p_pic->b_top_field_first );
picture_Release( p_pic_dst ); goto drop;
picture_Release( p_pic );
return NULL;
} }
p_pic_dst->b_progressive = true; p_pic_dst->b_progressive = true;
picture_Release( p_pic ); picture_Release( p_pic );
return p_pic_dst; return p_pic_dst;
drop:
picture_Release( p_pic_dst );
picture_Release( p_pic );
return NULL;
} }
static void Flush( filter_t *p_filter ) static void Flush( filter_t *p_filter )
......
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