[FFmpeg-devel] [PATCH 8/8] avformat/audiointerleave: only keep the retime functionality of the audio interleaver

James Almer jamrial at gmail.com
Sun Mar 29 00:05:56 EET 2020


On 3/28/2020 3:15 PM, Marton Balint wrote:
> +static int mxf_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt)
> +{
> +    int ret = 1;
> +    AVStream *st = s->streams[pkt->stream_index];
> +    MXFStreamContext *sc = st->priv_data;
> +
> +    if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) {
> +        char arg[32];
> +        snprintf(arg, sizeof(arg), "r=%d/%d", sc->aic.time_base.den, sc->aic.time_base.num);
> +        ret = ff_stream_add_bitstream_filter(st, "pcm_rechunk", arg);

Shouldn't you check that the stream's codec is PCM?

> +    }
> +
> +    return ret;



More information about the ffmpeg-devel mailing list