1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavd/caca: do not access deprecated codec context

Use the stream timebase instead.
This commit is contained in:
Anton Khirnov 2020-11-29 16:28:08 +01:00
parent 5471b8944c
commit fcf7ef0a81

View File

@ -180,7 +180,7 @@ static int caca_write_header(AVFormatContext *s)
if (!c->window_title)
c->window_title = av_strdup(s->url);
caca_set_display_title(c->display, c->window_title);
caca_set_display_time(c->display, av_rescale_q(1, st->codec->time_base, AV_TIME_BASE_Q));
caca_set_display_time(c->display, av_rescale_q(1, st->time_base, AV_TIME_BASE_Q));
return 0;