[vlc-devel] [PATCH] converter/format: fix payload size

"zhilizhao(赵志立)" quinkblack at foxmail.com
Wed May 5 09:33:48 UTC 2021



> On Apr 26, 2021, at 2:45 PM, Steve Lhomme <robux4 at ycbcr.xyz> wrote:
> 
> LGTM as a similar change is done in other functions reducing the byte witdh.

Please help apply the patch if there’s no objection, thanks!

> 
> On 2021-04-21 6:10, Zhao Zhili wrote:
>> ---
>>  modules/audio_filter/converter/format.c | 2 ++
>>  1 file changed, 2 insertions(+)
>> diff --git a/modules/audio_filter/converter/format.c b/modules/audio_filter/converter/format.c
>> index fe57dc5fc2..800f5eb139 100644
>> --- a/modules/audio_filter/converter/format.c
>> +++ b/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;
>>  }
>> -- 
>> 2.25.1
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list