diff options
author | Kieran Kunhya <kierank@obe.tv> | 2019-01-24 18:55:00 +0000 |
---|---|---|
committer | Kieran Kunhya <kierank@obe.tv> | 2019-03-09 18:42:34 +0000 |
commit | 2ff7af563a2551584c619ecdd0fae6b212668731 (patch) | |
tree | 2860b0787a4a0783fb3997b399f42f881eccd7fd /libavfilter | |
parent | 6e0b5d3a20e107860a34e90139b860d6b8219a1d (diff) | |
download | ffmpeg-2ff7af563a2551584c619ecdd0fae6b212668731.tar.gz |
vf_showinfo: Fix timecode display
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_showinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 9e84197a55..e41c3309a0 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -232,10 +232,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) break; case AV_FRAME_DATA_S12M_TIMECODE: { uint32_t *tc = (uint32_t*)sd->data; - for (int j = 1; j < tc[0]; j++) { + for (int j = 1; j <= tc[0]; j++) { char tcbuf[AV_TIMECODE_STR_SIZE]; av_timecode_make_smpte_tc_string(tcbuf, tc[j], 0); - av_log(ctx, AV_LOG_INFO, "timecode - %s%s", tcbuf, j != tc[0] - 1 ? ", " : ""); + av_log(ctx, AV_LOG_INFO, "timecode - %s%s", tcbuf, j != tc[0] ? ", " : ""); } break; } |