* Simplify PCM detection.
This commit is contained in:
parent
8c3ebe1259
commit
7403cce50c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user