mirror of
https://github.com/alexkay/spek.git
synced 2025-06-13 05:42:13 +03:00
avformat_close_input() is not in ffmpeg 0.7
Also, revert to av_register_all().
This commit is contained in:
parent
21f9c376b9
commit
2c76ad3d8e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user