[FFmpeg-cvslog] lavd/caca: do not access deprecated codec context

Anton Khirnov git at videolan.org
Thu Dec 10 11:11:33 EET 2020


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Nov 29 16:28:08 2020 +0100| [fcf7ef0a8128e73cd0b921732d309b0eb558e80e] | committer: Anton Khirnov

lavd/caca: do not access deprecated codec context

Use the stream timebase instead.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fcf7ef0a8128e73cd0b921732d309b0eb558e80e
---

 libavdevice/caca.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 



More information about the ffmpeg-cvslog mailing list