[FFmpeg-devel] [PATCH v3 4/5] avformat/movenc: add PCM in mp4 support

Tomas Härdin git at haerdin.se
Mon Mar 6 14:28:50 EET 2023


> +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..


/Tomas



More information about the ffmpeg-devel mailing list