avformat_close_input() is not in ffmpeg 0.7

Also, revert to av_register_all().
This commit is contained in:
Alexander Kojevnikov 2012-08-03 21:17:27 -07:00
parent 21f9c376b9
commit 2c76ad3d8e

View File

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