spek

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

commit 2c76ad3d8ef25a84b1f25ef77881ec7c51d1bedd
parent 21f9c376b99082ca9893ae27fe7c48ece03b55c3
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Fri,  3 Aug 2012 21:17:27 -0700

avformat_close_input() is not in ffmpeg 0.7

Also, revert to av_register_all().

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

diff --git a/src/spek-audio.c b/src/spek-audio.c @@ -24,7 +24,7 @@ void spek_audio_init () { /* TODO: register only audio decoders */ - avcodec_register_all (); + av_register_all (); } SpekAudioContext * spek_audio_open (const gchar *file_name) { @@ -210,7 +210,7 @@ void spek_audio_close (SpekAudioContext *cx) { avcodec_close (cx->codec_context); } if (cx->format_context != NULL) { - avformat_close_input (&cx->format_context); + av_close_input_file (cx->format_context); } g_free (cx); }