summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2007-01-15 21:27:34 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2007-01-15 21:27:34 +0000
commit24c2ff9afebbcc577c6bd42b27146f28ae3f0636 (patch)
tree8327104d3b08553483473e079b5e7c662a69131b /src
parentf566f68582d98325035a4e1bac4f273bdb93c88d (diff)
downloadxine-lib-24c2ff9afebbcc577c6bd42b27146f28ae3f0636.tar.gz
xine-lib-24c2ff9afebbcc577c6bd42b27146f28ae3f0636.tar.bz2
this->context may be NULL - avoid dereferencing it (and segfaulting) if it is.
CVS patchset: 8511 CVS date: 2007/01/15 21:27:34
Diffstat (limited to 'src')
-rw-r--r--src/libffmpeg/video_decoder.c4
1 files changed, 2 insertions, 2 deletions
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)