summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-01-04 17:17:42 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-01-04 17:17:42 +0100
commit1792bf5dc25937b9530b954a6f717d7789ee8900 (patch)
tree894030db3502fae9928e74cff672ca15e343a392
parente2043cf5a4cb60ed80652257f31099e1773e0482 (diff)
avformat: use correct libavcodec version check
see ffmpeg/doc/apichanges: 2012-06-05 - 62b39d4 - lavc 54.24.100 Add pkt_duration field to AVFrame.
-rw-r--r--modules/avformat/avformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/avformat/avformat.c b/modules/avformat/avformat.c
index 6a15fe4..02dbaae 100644
--- a/modules/avformat/avformat.c
+++ b/modules/avformat/avformat.c
@@ -174,7 +174,7 @@ static void handle_packet(struct vidsrc_st *st, AVPacket *pkt)
st->frameh(&vf, st->arg);
-#if LIBAVUTIL_VERSION_INT > ((49<<16)+(15<<8)+100)
+#if LIBAVCODEC_VERSION_INT >= ((54<<16)+(24<<8)+100)
/* simulate framerate (NOTE: not accurate) */
dur = 1.0 * av_frame_get_pkt_duration(frame) * av_q2d(st->time_base);
#else