[FFmpeg-devel] [PATCH v3 4/5] avformat/movenc: add PCM in mp4 support
"zhilizhao(赵志立)"
quinkblack at foxmail.com
Tue Mar 7 04:30:54 EET 2023
> On Mar 6, 2023, at 20:28, Tomas Härdin <git at haerdin.se> 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
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list