Originally committed as revision 4968 to svn://svn.ffmpeg.org/ffmpeg/trunk
return 0;
}
+static int voc_get_bps(int codec_id)
+{
+ switch (codec_id) {
+ case CODEC_ID_PCM_S16LE:
+ return 16;
+ case CODEC_ID_ADPCM_CT:
+ return 4;
+ default:
+ return 8;
+ }
+}
+
int
voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
{
dec->sample_rate = sample_rate;
dec->channels = channels;
dec->codec_id = codec_get_id(voc_codec_tags, get_byte(pb));
+ dec->bits_per_sample = voc_get_bps(dec->codec_id);
voc->remaining_size -= 2;
max_size -= 2;
channels = 1;