spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit 02893f9a42339b48daea040715c2882b84ae295c
parent 2622e55b2c00d7093434ade547111536d71d7928
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Mon, 20 Aug 2012 20:39:24 -0700

Fix compilation with FFmpeg 0.11

Diffstat:
Msrc/spek-audio.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/spek-audio.c b/src/spek-audio.c @@ -124,19 +124,19 @@ struct spek_audio_context * spek_audio_open(const char *path) return cx; } switch (cx->codec_context->sample_fmt) { - case SAMPLE_FMT_S16: + case AV_SAMPLE_FMT_S16: cx->properties.width = 16; cx->properties.fp = false; break; - case SAMPLE_FMT_S32: + case AV_SAMPLE_FMT_S32: cx->properties.width = 32; cx->properties.fp = false; break; - case SAMPLE_FMT_FLT: + case AV_SAMPLE_FMT_FLT: cx->properties.width = 32; cx->properties.fp = true; break; - case SAMPLE_FMT_DBL: + case AV_SAMPLE_FMT_DBL: cx->properties.width = 64; cx->properties.fp = true; break;