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; _______________________________________________ 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".