h4tr3d / avcpp

C++ wrapper for FFmpeg
Other
429 stars 78 forks source link

fix problematic compound literal on msvc. #94

Closed barcharcraz closed 3 years ago

barcharcraz commented 3 years ago

msvc doesn't support compound literals in c++ mode (it does in C mode) thus the definition of TimeBaseQ was failing to compile. C++ has list initialization of temporaries anyway so we can just use that instead.