* Simplify PCM detection.

This commit is contained in:
Justin Maggard 2009-01-30 18:16:24 +00:00
parent 8c3ebe1259
commit 7403cce50c

View File

@ -586,11 +586,7 @@ GetVideoMetadata(const char * path, char * name)
break; break;
default: default:
if( (ctx->streams[audio_stream]->codec->codec_id >= CODEC_ID_PCM_S16LE) && if( (ctx->streams[audio_stream]->codec->codec_id >= CODEC_ID_PCM_S16LE) &&
#ifdef CODEC_ID_PCM_F64LE (ctx->streams[audio_stream]->codec->codec_id < CODEC_ID_ADPCM_IMA_QT) )
(ctx->streams[audio_stream]->codec->codec_id <= CODEC_ID_PCM_F64LE) )
#else
(ctx->streams[audio_stream]->codec->codec_id <= CODEC_ID_PCM_S24DAUD) )
#endif
audio_profile = PCM; audio_profile = PCM;
else else
printf("Unhandled audio codec [%X]\n", ctx->streams[audio_stream]->codec->codec_id); printf("Unhandled audio codec [%X]\n", ctx->streams[audio_stream]->codec->codec_id);