static int check_fps(int fps)
{
int i;
- static const int supported_fps[] = {24, 25, 30, 48, 50, 60};
+ static const int supported_fps[] = {
+ 24, 25, 30, 48, 50, 60, 100, 120, 150,
+ };
for (i = 0; i < FF_ARRAY_ELEMS(supported_fps); i++)
if (fps == supported_fps[i])
return AVERROR(EINVAL);
}
if (check_fps(tc->fps) < 0) {
- av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate %d/%d not supported\n",
+ av_log(log_ctx, AV_LOG_WARNING, "Using non-standard frame rate %d/%d\n",
tc->rate.num, tc->rate.den);
- return AVERROR_PATCHWELCOME;
}
return 0;
}