Commit e8f954be authored by alex's avatar alex

proper handling of samplesize


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3980 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 71e8f0b5
......@@ -132,6 +132,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
av_log(s, AV_LOG_INFO, "Unsupported audio codec (%x)\n", flags >> 4);
st->codec.codec_tag= (flags >> 4);
}
st->codec.bits_per_sample = (flags & 2) ? 16 : 8;
}
}else{
st->codec.codec_type = CODEC_TYPE_VIDEO;
......
......@@ -35,7 +35,7 @@ static void put_be24(ByteIOContext *pb, int value)
}
static int get_audio_flags(AVCodecContext *enc){
int flags = 0;
int flags = (enc->bits_per_sample == 16) ? 0x2 : 0x0;
switch (enc->sample_rate) {
case 44100:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment