Revision 2f5132e7

View differences:

libavformat/flvdec.c
132 132
    		av_log(s, AV_LOG_INFO, "Unsupported audio codec (%x)\n", flags >> 4);
133 133
                st->codec.codec_tag= (flags >> 4);
134 134
            }
135
	    st->codec.bits_per_sample = (flags & 2) ? 16 : 8;
135 136
        }
136 137
    }else{
137 138
            st->codec.codec_type = CODEC_TYPE_VIDEO;
libavformat/flvenc.c
35 35
}
36 36

  
37 37
static int get_audio_flags(AVCodecContext *enc){
38
    int flags = 0;
38
    int flags = (enc->bits_per_sample == 16) ? 0x2 : 0x0;
39 39

  
40 40
    switch (enc->sample_rate) {
41 41
        case    44100:

Also available in: Unified diff