changeset 36575:a50d90b27e2d

demux_demuxers: check correct variable for NULL.
author reimar
date Mon, 20 Jan 2014 22:08:40 +0000
parents fdfddb4c8aa8
children fb65d6e1a9b2
files libmpdemux/demux_demuxers.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_demuxers.c	Mon Jan 20 22:08:39 2014 +0000
+++ b/libmpdemux/demux_demuxers.c	Mon Jan 20 22:08:40 2014 +0000
@@ -51,7 +51,7 @@
   ret->video = vd->video;
   ret->audio = ad->audio;
   ret->sub = sd->sub;
-  if (sd && sd != vd && sd != ad) sd->sub->non_interleaved = 1;
+  if (sd->sub && sd != vd && sd != ad) sd->sub->non_interleaved = 1;
 
   // without these, demux_demuxers_fill_buffer will never be called,
   // but they break the demuxer-specific code in video.c