mirror of
https://github.com/alexkay/spek.git
synced 2025-06-08 03:12:09 +03:00
Fix compilation with FFmpeg 0.11
This commit is contained in:
parent
2622e55b2c
commit
02893f9a42
@ -124,19 +124,19 @@ struct spek_audio_context * spek_audio_open(const char *path)
|
|||||||
return cx;
|
return cx;
|
||||||
}
|
}
|
||||||
switch (cx->codec_context->sample_fmt) {
|
switch (cx->codec_context->sample_fmt) {
|
||||||
case SAMPLE_FMT_S16:
|
case AV_SAMPLE_FMT_S16:
|
||||||
cx->properties.width = 16;
|
cx->properties.width = 16;
|
||||||
cx->properties.fp = false;
|
cx->properties.fp = false;
|
||||||
break;
|
break;
|
||||||
case SAMPLE_FMT_S32:
|
case AV_SAMPLE_FMT_S32:
|
||||||
cx->properties.width = 32;
|
cx->properties.width = 32;
|
||||||
cx->properties.fp = false;
|
cx->properties.fp = false;
|
||||||
break;
|
break;
|
||||||
case SAMPLE_FMT_FLT:
|
case AV_SAMPLE_FMT_FLT:
|
||||||
cx->properties.width = 32;
|
cx->properties.width = 32;
|
||||||
cx->properties.fp = true;
|
cx->properties.fp = true;
|
||||||
break;
|
break;
|
||||||
case SAMPLE_FMT_DBL:
|
case AV_SAMPLE_FMT_DBL:
|
||||||
cx->properties.width = 64;
|
cx->properties.width = 64;
|
||||||
cx->properties.fp = true;
|
cx->properties.fp = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user