| Adapt to the latest ffmpeg API |
| |
| Gentoo bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=540150 |
| Signed-off-by: Markos Chandras <hwoarang@gentoo.org> |
| |
| Index: libdlna-0.2.4/src/profiles.c |
| =================================================================== |
| --- libdlna-0.2.4.orig/src/profiles.c |
| +++ libdlna-0.2.4/src/profiles.c |
| @@ -334,7 +334,12 @@ dlna_guess_media_profile (dlna_t *dlna, |
| p = p->next; |
| } |
| |
| +#if LIBAVFORMAT_VERSION_MAJOR < 54 |
| av_close_input_file (ctx); |
| +#else |
| + avformat_close_input(&ctx); |
| +#endif |
| + |
| free (codecs); |
| return profile; |
| } |