History

lavu/timecode: Allow drop frame mode for 60000/1001 fps

Jason committed 13 years ago

Commit a717fa81 parent 55d66b22 files · +3 −3Browse files

Unified · Split

2 files
  1. libavutil/timecode.c +2 −2
  2. libavutil/version.h +1 −1
libavutil/timecode.c+2−2
@@ -152,8 +152,8 @@ static int check_timecode(void *log_ctx, AVTimecode *tc) · 151 unmodified lines
152152 av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate must be specified\n");
153153 return AVERROR(EINVAL);
154154 }
155− if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30) {
156− av_log(log_ctx, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 FPS\n");
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 or 60000/1001 FPS\n");
157157 return AVERROR(EINVAL);
158158 }
159159 if (check_fps(tc->fps) < 0) {
libavutil/version.h+1−1
@@ -76,7 +76,7 @@ · 75 unmodified lines
7676
7777 #define LIBAVUTIL_VERSION_MAJOR 52
7878 #define LIBAVUTIL_VERSION_MINOR 15
79−#define LIBAVUTIL_VERSION_MICRO 102
79+#define LIBAVUTIL_VERSION_MICRO 103
8080
8181 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
8282 LIBAVUTIL_VERSION_MINOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t