mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gstvolume.c:321: warning: operation on 'i' may be undefined
Original commit message from CVS: gstvolume.c:321: warning: operation on 'i' may be undefined
This commit is contained in:
parent
23168fa71b
commit
ff7ac81fd8
1 changed files with 2 additions and 1 deletions
|
@ -318,7 +318,8 @@ volume_chain_int16 (GstPad *pad, GstBuffer *buf)
|
|||
i = 0;
|
||||
|
||||
while(GST_DPMAN_PROCESS_COUNTDOWN(filter->dpman, sample_countdown, i)) {
|
||||
data[i] = (gint16)(filter->real_vol_i * (gint)data[i++] / 8192);
|
||||
data[i] = (gint16)(filter->real_vol_i * (gint)data[i] / 8192);
|
||||
i++;
|
||||
}
|
||||
|
||||
gst_pad_push(filter->srcpad,out_buf);
|
||||
|
|
Loading…
Reference in a new issue