Use r_frame_rate from AVStream if avg_frame_rate is not a number; fixes problems...