History

avfilter/vf_showinfo: display GOP timecode side data

Limin Wang committed 7 years ago

Commit ede15bf1 parent ef134261 file · +6 −0Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_showinfo.c+6−0
@@ -313,6 +313,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) · 312 unmodified lines
313313 case AV_FRAME_DATA_CONTENT_LIGHT_LEVEL:
314314 dump_content_light_metadata(ctx, sd);
315315 break;
316+ case AV_FRAME_DATA_GOP_TIMECODE: {
317+ char tcbuf[AV_TIMECODE_STR_SIZE];
318+ av_timecode_make_mpeg_tc_string(tcbuf, *(int64_t *)(sd->data));
319+ av_log(ctx, AV_LOG_INFO, "GOP timecode - %s", tcbuf);
320+ break;
321+ }
316322 default:
317323 av_log(ctx, AV_LOG_WARNING, "unknown side data type %d (%d bytes)",
318324 sd->type, sd->size);

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