Showing the changes to libavutil/timecode.c (1 of 2 files). Show all
Unified · Split
| @@ -152,8 +152,8 @@ static int check_timecode(void *log_ctx, AVTimecode *tc) · 151 unmodified lines | |||
| 152 | av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate must be specified\n"); | 152 | av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate must be specified\n"); |
| 153 | return AVERROR(EINVAL); | 153 | return AVERROR(EINVAL); |
| 154 | } | 154 | } |
| 155 | if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30) { | 155 | if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30 && tc->fps != 60) { |
| 156 | av_log(log_ctx, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 FPS\n"); | 156 | av_log(log_ctx, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 or 60000/1001 FPS\n"); |
| 157 | return AVERROR(EINVAL); | 157 | return AVERROR(EINVAL); |
| 158 | } | 158 | } |
| 159 | if (check_fps(tc->fps) < 0) { | 159 | if (check_fps(tc->fps) < 0) { |