[vlc-devel] [PATCH] opengl: do not overwrite frame rate

Romain Vimont rom1v at videolabs.io
Tue Apr 20 14:12:20 UTC 2021


The opengl filter does not change the input framerate.

On Android, if hardware decoding is enabled, for some reason,
i_frame_rate_base is 0, so the assert fails. But the filter still works.
---
 modules/video_filter/opengl.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/modules/video_filter/opengl.c b/modules/video_filter/opengl.c
index 529ebf9a6e..b3b08afdde 100644
--- a/modules/video_filter/opengl.c
+++ b/modules/video_filter/opengl.c
@@ -278,14 +278,6 @@ static int Open( vlc_object_t *obj )
         = filter->fmt_out.i_codec
         = sys->gl->offscreen_chroma_out;
 
-    filter->fmt_out.video.i_frame_rate =
-        filter->fmt_in.video.i_frame_rate;
-
-    filter->fmt_out.video.i_frame_rate_base =
-        filter->fmt_in.video.i_frame_rate_base;
-
-    assert(filter->fmt_out.video.i_frame_rate_base != 0);
-
     filter->vctx_out = sys->gl->offscreen_vctx_out;
 
     return VLC_SUCCESS;
-- 
2.31.0



More information about the vlc-devel mailing list