summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-23 01:05:08 +0000
committerCarl Hetherington <cth@carlh.net>2018-02-23 01:05:08 +0000
commite1863a2767e5b8aebac53d8118730fadc369dbf3 (patch)
tree47224906b9ac578df426c736d45b3e03c1781f87
parent855f2061bd2b85a8cfbffd915250474131b4da16 (diff)
More back-compat.
-rw-r--r--ffcmp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ffcmp.c b/ffcmp.c
index b160de63..b9ed14d3 100644
--- 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);