More back-compat.
authorCarl Hetherington <cth@carlh.net>
Fri, 23 Feb 2018 01:05:08 +0000 (01:05 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 23 Feb 2018 01:05:08 +0000 (01:05 +0000)
ffcmp.c

diff --git a/ffcmp.c b/ffcmp.c
index b160de634842ef1d722262f2641ddd0356d0f313..b9ed14d362a801519405c8a33b9dd7f799cf3747 100644 (file)
--- a/ffcmp.c
+++ b/ffcmp.c
@@ -53,7 +53,11 @@ open_file(char* filename)
                }
        }
 
+#ifdef FFCMP_HAVE_AVUTIL_FRAME_H
        file.current_frame = av_frame_alloc();
+#else
+       file.current_frame = av_alloc_frame();
+#endif
        if (!file.current_frame) {
                fprintf(stderr, "Could not allocate frame.\n");
                exit(EXIT_FAILURE);