From 24c2ff9afebbcc577c6bd42b27146f28ae3f0636 Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Mon, 15 Jan 2007 21:27:34 +0000 Subject: this->context may be NULL - avoid dereferencing it (and segfaulting) if it is. CVS patchset: 8511 CVS date: 2007/01/15 21:27:34 --- src/libffmpeg/video_decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libffmpeg/video_decoder.c b/src/libffmpeg/video_decoder.c index f4bde4cde..467575187 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.66 2007/01/14 16:53:37 klan Exp $ + * $Id: video_decoder.c,v 1.67 2007/01/15 21:27:34 dsalt Exp $ * * xine video decoder plugin using ffmpeg * @@ -430,7 +430,7 @@ static void pp_change_quality (ff_video_decoder_t *this) { this->pp_quality = this->class->pp_quality; if(this->pp_available && this->pp_quality) { - if(!this->pp_context) + if(!this->pp_context && this->context) this->pp_context = pp_get_context(this->context->width, this->context->height, this->pp_flags); if(this->pp_mode) -- cgit v1.2.3