From e37f9eb4029b1a85a3990975969f523cfe4db3bc Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Mon, 18 Sep 2006 18:56:56 +0000 Subject: Added comment about the workaround. CVS patchset: 8270 CVS date: 2006/09/18 18:56:56 --- src/libffmpeg/video_decoder.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libffmpeg/video_decoder.c b/src/libffmpeg/video_decoder.c index 95fb26389..8f6f70ab9 100644 --- a/src/libffmpeg/video_decoder.c +++ b/src/libffmpeg/video_decoder.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: video_decoder.c,v 1.62 2006/09/18 18:51:08 tmattern Exp $ + * $Id: video_decoder.c,v 1.63 2006/09/18 18:56:56 tmattern Exp $ * * xine video decoder plugin using ffmpeg * @@ -154,6 +154,7 @@ static int get_buffer(AVCodecContext *context, AVFrame *av_frame){ this->is_direct_rendering_disabled = 1; } + /* FIXME: why should i have to do that ? */ av_frame->data[0]= NULL; av_frame->data[1]= NULL; av_frame->data[2]= NULL; @@ -170,6 +171,10 @@ static int get_buffer(AVCodecContext *context, AVFrame *av_frame){ _("ffmpeg_video_dec: unsupported frame dimensions, DR1 disabled.\n")); this->is_direct_rendering_disabled = 1; } + /* FIXME: why should i have to do that ? */ + av_frame->data[0]= NULL; + av_frame->data[1]= NULL; + av_frame->data[2]= NULL; return avcodec_default_get_buffer(context, av_frame); } } -- cgit v1.2.3