> On Mar 6, 2023, at 20:28, Tomas Härdin <[email protected]> wrote:
> 
>> +static int mov_write_chnl_tag(AVFormatContext *s, AVIOContext *pb,
>> MOVTrack *track)
>> +{
>> +    int64_t pos = avio_tell(pb);
>> +    int config = 0;
>> +    int ret;
>> +    uint8_t *speaker_pos = NULL;
>> +    const AVChannelLayout *layout = &track->par->ch_layout;
>> +
>> +    ret = ff_mov_get_channel_config_from_layout(layout, &config);
>> +    if (ret || !config) {
> 
> ret is always 0..

That implementation details. It’s robust for caller to not depending
on that.

> 
> 
> /Tomas
> 
> _______________________________________________
> ffmpeg-devel mailing list
> [email protected]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> [email protected] with subject "unsubscribe".

_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to