Skip to content
Snippets Groups Projects
Commit b637d46b authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf
Browse files

avcommon: add a conversion from AVRational to vlc_rational_t


Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent feafd961
No related branches found
No related tags found
No related merge requests found
......@@ -117,4 +117,9 @@ static inline void vlc_init_avcodec(vlc_object_t *obj)
}
#endif
static inline vlc_rational_t FromAVRational(const AVRational rat)
{
return (vlc_rational_t){.num = rat.num, .den = rat.den};
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment