[FFmpeg-devel] [PATCH] Waveform Archiver decoder and demuxer
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Wed Feb 1 15:54:36 EET 2023
Paul B Mahol:
> + if (AV_RL32(par->extradata + 28) != MKTAG('f','m','t',' '))
> + return AVERROR_INVALIDDATA;
> +
> + av_channel_layout_uninit(&par->ch_layout);
You do not need this; the channel layout of a freshly allocated stream
is always blank.
> + av_channel_layout_default(&par->ch_layout, AV_RL16(par->extradata + 38));
> + par->sample_rate = AV_RL32(par->extradata + 40);
> + avpriv_set_pts_info(st, 64, 1, par->sample_rate)
- Andreas
More information about the ffmpeg-devel
mailing list