Fix wrong animation duration when using older Libav

This commit is contained in:
Sergey Sharybin 2014-02-06 15:57:32 +06:00
parent 4f40f8780d
commit 9c587ae8a0

@ -426,7 +426,12 @@ AVRational av_get_r_frame_rate_compat(const AVStream *stream)
#if LIBAVCODEC_VERSION_MICRO >= 100
return stream->r_frame_rate;
#else
# if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 23, 1)
/* For until r_frame_rate was deprecated use it. */
return stream->r_frame_rate;
# else
return stream->avg_frame_rate;
# endif
#endif
}