mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
audio-converter: fix declaration-after-statement
This commit is contained in:
parent
9cf4293bde
commit
06ae49f525
1 changed files with 5 additions and 2 deletions
|
@ -1469,11 +1469,14 @@ gst_audio_converter_convert (GstAudioConverter * convert,
|
|||
GstAudioConverterFlags flags, gpointer in, gsize in_size,
|
||||
gpointer * out, gsize * out_size)
|
||||
{
|
||||
gsize in_frames;
|
||||
gsize out_frames;
|
||||
|
||||
g_return_val_if_fail (convert != NULL, FALSE);
|
||||
g_return_val_if_fail (flags ^ GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE, FALSE);
|
||||
|
||||
gsize in_frames = in_size / convert->in.bpf;
|
||||
gsize out_frames = gst_audio_converter_get_out_frames (convert, in_frames);
|
||||
in_frames = in_size / convert->in.bpf;
|
||||
out_frames = gst_audio_converter_get_out_frames (convert, in_frames);
|
||||
|
||||
*out_size = out_frames * convert->out.bpf;
|
||||
*out = g_malloc0 (*out_size);
|
||||
|
|
Loading…
Reference in a new issue