+ } else if (ast->codecpar->bits_per_coded_sample == 8) {
+ if(strstr(audio_type, "unsigned") != NULL) {
+ ast->codecpar->codec_id = AV_CODEC_ID_PCM_U8;
+ break;
+ } else if(strstr(audio_type, "linear") != NULL) {
+ ast->codecpar->codec_id = AV_CODEC_ID_PCM_S8;
+ break;
+ } else {
+ ast->codecpar->codec_id = AV_CODEC_ID_PCM_VIDC;
+ break;
+ }