[vlc-commits] [Git][videolan/vlc][master] converter/format: fix payload size

Thomas Guillem gitlab at videolan.org
Tue May 11 06:56:21 UTC 2021



Thomas Guillem pushed to branch master at VideoLAN / VLC


Commits:
7cb75e56 by Zhao Zhili at 2021-05-11T05:37:23+00:00
converter/format: fix payload size

- - - - -


1 changed file:

- modules/audio_filter/converter/format.c


Changes:

=====================================
modules/audio_filter/converter/format.c
=====================================
@@ -415,6 +415,7 @@ static block_t *Fl64toFl32(filter_t *filter, block_t *b)
     float  *dst = (float *)src;
     for (size_t i = b->i_buffer / 8; i--;)
         *(dst++) = *(src++);
+    b->i_buffer /= 2;
 
     VLC_UNUSED(filter);
     return b;
@@ -435,6 +436,7 @@ static block_t *Fl64toS32(filter_t *filter, block_t *b)
         else
             *(dst++) = lround(s);
     }
+    b->i_buffer /= 2;
     VLC_UNUSED(filter);
     return b;
 }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7cb75e5685b2e317dab96ce3c6f9ff1dcef9c993

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7cb75e5685b2e317dab96ce3c6f9ff1dcef9c993
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list