mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
vf_showinfo: Fix timecode display
This commit is contained in:
parent
6e0b5d3a20
commit
2ff7af563a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user