forked from bartvdbraak/blender
Fix wrong animation duration when using older Libav
This commit is contained in:
parent
4f40f8780d
commit
9c587ae8a0
@ -425,9 +425,14 @@ AVRational av_get_r_frame_rate_compat(const AVStream *stream)
|
||||
/* Stupid way to distinguish FFmpeg from Libav. */
|
||||
#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
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user