Commit ede15bf2 authored by Limin Wang's avatar Limin Wang Committed by Michael Niedermayer

avfilter/vf_showinfo: display GOP timecode side data

Signed-off-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent ef134265
...@@ -313,6 +313,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) ...@@ -313,6 +313,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
case AV_FRAME_DATA_CONTENT_LIGHT_LEVEL: case AV_FRAME_DATA_CONTENT_LIGHT_LEVEL:
dump_content_light_metadata(ctx, sd); dump_content_light_metadata(ctx, sd);
break; break;
case AV_FRAME_DATA_GOP_TIMECODE: {
char tcbuf[AV_TIMECODE_STR_SIZE];
av_timecode_make_mpeg_tc_string(tcbuf, *(int64_t *)(sd->data));
av_log(ctx, AV_LOG_INFO, "GOP timecode - %s", tcbuf);
break;
}
default: default:
av_log(ctx, AV_LOG_WARNING, "unknown side data type %d (%d bytes)", av_log(ctx, AV_LOG_WARNING, "unknown side data type %d (%d bytes)",
sd->type, sd->size); sd->type, sd->size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment