diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-11-29 16:28:08 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-12-10 09:45:19 +0100 |
commit | fcf7ef0a8128e73cd0b921732d309b0eb558e80e (patch) | |
tree | 18bf8a3163c8d6ec29bf593c3bafb057b94a57d7 /libavdevice | |
parent | 5471b8944c2bd1650fef3bc6647743972f0c5b14 (diff) | |
download | ffmpeg-fcf7ef0a8128e73cd0b921732d309b0eb558e80e.tar.gz |
lavd/caca: do not access deprecated codec context
Use the stream timebase instead.
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/caca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/caca.c b/libavdevice/caca.c index be3ff79736..726cfda95f 100644 --- a/libavdevice/caca.c +++ b/libavdevice/caca.c @@ -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; |