summaryrefslogtreecommitdiff
path: root/ext/resindvd
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-04-09 14:37:48 +0100
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-04-09 14:37:48 +0100
commit612cdeec80da95b12f9fad928419c7de2be20d68 (patch)
tree1ae08b2aee5e99c6fd9dd2d965089095018955e5 /ext/resindvd
parentf255422ec22c33ed9565269c54ba5dfaa11d3834 (diff)
resindvd: avoid crashing in pathological case
When we'd see an unknown stream type, then a SDDS stream. Then we'd get to the end of the switch with a NULL temp stream pointer, and dereference it. Coverity 1139708
Diffstat (limited to 'ext/resindvd')
-rw-r--r--ext/resindvd/gstmpegdemux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/resindvd/gstmpegdemux.c b/ext/resindvd/gstmpegdemux.c
index 42c229007..fcf9d759e 100644
--- a/ext/resindvd/gstmpegdemux.c
+++ b/ext/resindvd/gstmpegdemux.c
@@ -708,7 +708,11 @@ gst_flups_demux_handle_dvd_event (GstFluPSDemux * demux, GstEvent * event)
break;
case 0x7:
/* FIXME: What range is SDDS? */
- break;
+ GST_WARNING_OBJECT (demux,
+ "Unsupported audio stream format in language code event: %d",
+ stream_format);
+ temp = NULL;
+ continue;
default:
GST_WARNING_OBJECT (demux,
"Unknown audio stream format in language code event: %d",