mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
wavpackdec: fix copying output data
This commit is contained in:
parent
7dbb1551ae
commit
e43ff87364
1 changed files with 2 additions and 2 deletions
|
@ -394,14 +394,14 @@ gst_wavpack_dec_handle_frame (GstAudioDecoder * bdec, GstBuffer * buf)
|
|||
if (width == 8) {
|
||||
gint8 *outbuffer = (gint8 *) out_data;
|
||||
|
||||
for (i = 0; i < max; i--) {
|
||||
for (i = 0; i < max; i++) {
|
||||
*outbuffer++ = (gint8) (dec_data[i]);
|
||||
}
|
||||
} else if (width == 16) {
|
||||
gint16 *outbuffer = (gint16 *) out_data;
|
||||
|
||||
for (i = 0; i < max; i++) {
|
||||
*outbuffer++ = (gint8) (dec_data[i]);
|
||||
*outbuffer++ = (gint16) (dec_data[i]);
|
||||
}
|
||||
} else if (dec->width == 32) {
|
||||
gint32 *outbuffer = (gint32 *) out_data;
|
||||
|
|
Loading…
Reference in a new issue