Browse Source

lavd/caca: do not access deprecated codec context

Use the stream timebase instead.
tags/n4.4
Anton Khirnov 4 years ago
parent
commit
fcf7ef0a81
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavdevice/caca.c

+ 1
- 1
libavdevice/caca.c View File

@@ -180,7 +180,7 @@ static int caca_write_header(AVFormatContext *s)
if (!c->window_title) if (!c->window_title)
c->window_title = av_strdup(s->url); c->window_title = av_strdup(s->url);
caca_set_display_title(c->display, c->window_title); 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; return 0;




Loading…
Cancel
Save