[FFmpeg-devel] [PATCH] Stream parsing
Justin Ruggles
justin.ruggles
Sun Oct 3 20:40:52 CEST 2010
Benjamin Larsson wrote:
> $topic, previously discussed in [RFC] Stream parsing
>
> MvH
> Benjamin Larsson
>
> +/**
> + * Codec should fill in channel configuration and samplerate instead of container
> + */
> +#define CODEC_CAP_CHANNEL_CONF 0x0400
[...]
> @@ -2191,9 +2192,17 @@
> }
> }
> assert(!st->codec->codec);
> + codec = avcodec_find_decoder(st->codec->codec_id);
> +
> + /* Force decoding of at least one frame of codec data
> + * this makes sure the codec initializes the channel configuration
> + * and does not trust the values from the container.
> + */
> + if (codec && codec->capabilities & CODEC_CAP_CHANNEL_CONF)
> + st->codec->channels = 0;
Your documentation says channel configuration and samplerate. Why is
sample_rate not also set to 0 here?
-Justin
More information about the ffmpeg-devel
mailing list