diff options
Diffstat (limited to 'src/post/planar/denoise3d.c')
-rw-r--r-- | src/post/planar/denoise3d.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/post/planar/denoise3d.c b/src/post/planar/denoise3d.c index fe76e2a6c..36ba6490c 100644 --- a/src/post/planar/denoise3d.c +++ b/src/post/planar/denoise3d.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: denoise3d.c,v 1.10 2003/11/11 18:44:59 f1rmb Exp $ + * $Id: denoise3d.c,v 1.11 2003/12/07 15:33:26 miguelfreitas Exp $ * * mplayer's denoise3d * Copyright (C) 2003 Daniel Moreno <comac@comac.darktech.org> @@ -346,11 +346,13 @@ static vo_frame_t *denoise3d_get_frame(xine_video_port_t *port_gen, uint32_t wid width, height, ratio, format, flags); _x_post_intercept_video_frame(frame, port); - /* replace with our own draw function */ - frame->draw = denoise3d_draw; - /* decoders should not copy the frames, since they won't be displayed */ - frame->proc_slice = NULL; - frame->proc_frame = NULL; + if( format == XINE_IMGFMT_YV12 || format == XINE_IMGFMT_YUY2 ) { + /* replace with our own draw function */ + frame->draw = denoise3d_draw; + /* decoders should not copy the frames, since they won't be displayed */ + frame->proc_slice = NULL; + frame->proc_frame = NULL; + } return frame; } |