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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to