Revision f96d0eef

View differences:

libavformat/flvdec.c
53 53
            acodec->codec_id = acodec->bits_per_coded_sample == 8 ? CODEC_ID_PCM_S8 : CODEC_ID_PCM_S16LE; break;
54 54
        case FLV_CODECID_AAC  : acodec->codec_id = CODEC_ID_AAC;                                    break;
55 55
        case FLV_CODECID_ADPCM: acodec->codec_id = CODEC_ID_ADPCM_SWF;                              break;
56
        case FLV_CODECID_SPEEX: acodec->codec_id = CODEC_ID_SPEEX;                                  break;
56
        case FLV_CODECID_SPEEX:
57
            acodec->codec_id = CODEC_ID_SPEEX;
58
            acodec->sample_rate = 16000;
59
            break;
57 60
        case FLV_CODECID_MP3  : acodec->codec_id = CODEC_ID_MP3      ; astream->need_parsing = AVSTREAM_PARSE_FULL; break;
58 61
        case FLV_CODECID_NELLYMOSER_8KHZ_MONO:
59 62
            acodec->sample_rate = 8000; //in case metadata does not otherwise declare samplerate

Also available in: Unified diff