summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_compatibility.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-09 09:49:24 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-09 09:49:24 +0000
commit94b48aad7958be46e8294ed736baa53c86ce6b26 (patch)
tree13fdb16a9c17633f44104c292b85caba06f9e71a /src/lib/ffmpeg_compatibility.cc
parent8a6d700346a6f5ca320883ea1e4d628b80f3b8fd (diff)
Try to allow builds with 0.10.4-era ffmpeg.
Diffstat (limited to 'src/lib/ffmpeg_compatibility.cc')
-rw-r--r--src/lib/ffmpeg_compatibility.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_compatibility.cc b/src/lib/ffmpeg_compatibility.cc
index c47cdf5ce..09f9276ac 100644
--- a/src/lib/ffmpeg_compatibility.cc
+++ b/src/lib/ffmpeg_compatibility.cc
@@ -107,3 +107,11 @@ avfilter_inout_alloc ()
return (AVFilterInOut *) av_malloc (sizeof (AVFilterInOut));
}
#endif
+
+#ifndef HAVE_AV_FRAME_GET_BEST_EFFORT_TIMESTAMP
+int64_t av_frame_get_best_effort_timestamp (AVFrame const * f)
+{
+ return f->best_effort_timestamp;
+}
+
+#endif