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

2023-03-07 Thread Tomas Härdin
tis 2023-03-07 klockan 10:30 +0800 skrev zhilizhao(赵志立): > > > > On Mar 6, 2023, at 20:28, Tomas Härdin wrote: > > > > > +static int mov_write_chnl_tag(AVFormatContext *s, AVIOContext > > > *pb, > > > MOVTrack *track) > > > +{ > > > +    int64_t pos = avio_tell(pb); > > > +    int config = 0; >

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

2023-03-06 Thread zhilizhao(赵志立)
> On Mar 6, 2023, at 20:28, Tomas Härdin 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 *la

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

2023-03-06 Thread Tomas Härdin
> +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_cha

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

2023-03-05 Thread Zhao Zhili
From: Zhao Zhili It's defined by ISO/IEC 23003-5. Fixes ticket #10185 Signed-off-by: Zhao Zhili --- libavformat/movenc.c | 84 +++- 1 file changed, 83 insertions(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index c4fcb5f8b