Count all frames with codec_info_nb_frames not just ones with non zero