mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
ffplay: use format title metadata to set window caption.
This commit is contained in:
parent
b8edf91657
commit
9db6aaeb2c
1 changed files with 3 additions and 0 deletions
3
ffplay.c
3
ffplay.c
|
|
@ -2725,6 +2725,9 @@ static int read_thread(void *arg)
|
|||
|
||||
is->max_frame_duration = (ic->iformat->flags & AVFMT_TS_DISCONT) ? 10.0 : 3600.0;
|
||||
|
||||
if (!window_title && (t = av_dict_get(ic->metadata, "title", NULL, 0)))
|
||||
window_title = av_asprintf("%s - %s", t->value, input_filename);
|
||||
|
||||
/* if seeking requested, we execute it */
|
||||
if (start_time != AV_NOPTS_VALUE) {
|
||||
int64_t timestamp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue