projects
/
platform
/
upstream
/
gst-plugins-ugly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
121e8e6
)
dvdlpmdec: Fix overrun from coverity
author
Vivia Nikolaidou
<vivia@ahiru.eu>
Tue, 11 Jul 2017 11:21:41 +0000
(14:21 +0300)
committer
Sebastian Dröge
<sebastian@centricular.com>
Tue, 11 Jul 2017 11:23:27 +0000
(14:23 +0300)
CID #1414801
gst/dvdlpcmdec/gstdvdlpcmdec.c
patch
|
blob
|
history
diff --git
a/gst/dvdlpcmdec/gstdvdlpcmdec.c
b/gst/dvdlpcmdec/gstdvdlpcmdec.c
index
8ac6abb
..
081084f
100644
(file)
--- a/
gst/dvdlpcmdec/gstdvdlpcmdec.c
+++ b/
gst/dvdlpcmdec/gstdvdlpcmdec.c
@@
-668,7
+668,7
@@
gst_dvdlpcmdec_parse_bluray (GstDvdLpcmDec * dvdlpcmdec, GstAdapter * adapter,
default:
channels = 0;
GST_WARNING ("Invalid number of audio channels!");
-
break
;
+
goto negotiation_failed
;
}
GST_DEBUG_OBJECT (dvdlpcmdec, "got channels %d rate %d format %s",
channels, rate, gst_audio_format_to_string (format));
@@
-761,7
+761,7
@@
gst_dvdlpcmdec_parse_1394 (GstDvdLpcmDec * dvdlpcmdec, GstAdapter * adapter,
default:
channels = 0;
GST_WARNING ("Invalid number of audio channels!");
-
break
;
+
goto negotiation_failed
;
}
gst_dvdlpcmdec_update_audio_formats (dvdlpcmdec, channels, rate, format,