Skip to content
Snippets Groups Projects
Commit 84a51793 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Jean-Baptiste Kempf
Browse files

avcapture: setup framerate correctly

Set the framerate to 1 / framerate_base, avoiding the following warning
for a 30fps capture stream:

    rawvideo decoder warning: invalid frame rate 0/30000, using 25 fps
    instead
parent 5f8f5299
No related branches found
No related tags found
1 merge request!648avcapture: rework to modernize code and fix playback issues
......@@ -444,6 +444,7 @@ static int Demux(demux_t *p_demux)
}
else if ( !p_sys->b_es_setup )
{
p_sys->fmt.video.i_frame_rate = 1;
p_sys->fmt.video.i_frame_rate_base = [(__bridge VLCAVDecompressedVideoOutput *)p_sys->output timeScale];
msg_Dbg(p_demux, "using frame rate base: %i", p_sys->fmt.video.i_frame_rate_base);
p_sys->width = p_sys->fmt.video.i_width = [(__bridge VLCAVDecompressedVideoOutput *)p_sys->output width];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment