On 07/08/2011 06:51 PM, Alex Converse wrote: > + st->codec->codec_type = AVMEDIA_TYPE_AUDIO; > + st->codec->codec_id = CODEC_ID_CELT; > + st->codec->sample_rate = sample_rate; > + st->codec->channels = nb_channels; > + st->codec->frame_size = frame_size; > + st->codec->sample_fmt = AV_SAMPLE_FMT_S16;
The demuxer should not set sample_fmt. That is decoder-dependent, not a stream property. -Justin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
