On Tue, May 9, 2017 at 1:30 AM, wm4 <[email protected]> wrote:
> On Mon,  8 May 2017 12:28:43 -0400
> Vittorio Giovara <[email protected]> wrote:
>
>> This is currently an unsupported feature, only passthrough is allowed.
>>
>> Signed-off-by: Vittorio Giovara <[email protected]>
>> ---
>>  libavresample/utils.c | 8 ++++++++
>>  1 file changed, 8 insertions(+)
>>
>> diff --git a/libavresample/utils.c b/libavresample/utils.c
>> index 15c827efbe..af2b9dbf2d 100644
>> --- a/libavresample/utils.c
>> +++ b/libavresample/utils.c
>> @@ -70,6 +70,14 @@ int avresample_open(AVAudioResampleContext *avr)
>>          av_channel_layout_default(&avr->out_ch_layout, 
>> avr->out_ch_layout.nb_channels);
>>      }
>>
>> +    if (( avr->in_ch_layout.order == AV_CHANNEL_ORDER_AMBISONIC ||
>> +         avr->out_ch_layout.order == AV_CHANNEL_ORDER_AMBISONIC) &&
>> +        av_channel_layout_compare(&avr->in_ch_layout, &avr->out_ch_layout)) 
>> {
>> +        av_log(avr, AV_LOG_ERROR,
>> +               "Resampling to/from ambisonic channel layouts is not 
>> supported.\n");
>> +        return AVERROR(ENOSYS);
>> +    }
>> +
>>      /* set channel mixing parameters */
>>  #if FF_API_OLD_CHANNEL_LAYOUT
>>      if (avr->in_channel_layout) {
>
> Seems like you actually allow resampling, as long as the layout doesn't
> change.

yes, for ambisonic only passthrough is allowed, I guess i'll reflect
it better in the commit title
-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to