dvdlpmdec: Fix overrun from coverity

CID #1414801
This commit is contained in:
Vivia Nikolaidou 2017-07-11 14:21:41 +03:00 committed by Sebastian Dröge
parent 121e8e6210
commit 3b99cf6c54

View file

@ -668,7 +668,7 @@ gst_dvdlpcmdec_parse_bluray (GstDvdLpcmDec * dvdlpcmdec, GstAdapter * adapter,
default: default:
channels = 0; channels = 0;
GST_WARNING ("Invalid number of audio channels!"); GST_WARNING ("Invalid number of audio channels!");
break; goto negotiation_failed;
} }
GST_DEBUG_OBJECT (dvdlpcmdec, "got channels %d rate %d format %s", GST_DEBUG_OBJECT (dvdlpcmdec, "got channels %d rate %d format %s",
channels, rate, gst_audio_format_to_string (format)); channels, rate, gst_audio_format_to_string (format));
@ -761,7 +761,7 @@ gst_dvdlpcmdec_parse_1394 (GstDvdLpcmDec * dvdlpcmdec, GstAdapter * adapter,
default: default:
channels = 0; channels = 0;
GST_WARNING ("Invalid number of audio channels!"); GST_WARNING ("Invalid number of audio channels!");
break; goto negotiation_failed;
} }
gst_dvdlpcmdec_update_audio_formats (dvdlpcmdec, channels, rate, format, gst_dvdlpcmdec_update_audio_formats (dvdlpcmdec, channels, rate, format,