Interesting, but checking (_videoStream->avg_frame_rate.den == 0) wouldn't be easier? Or maybe directly use _videoStream->time_base.den and _videoStream->time_base.num ?