[vlc-commits] packetizer: mpegvideo: set default rate to field rate

Francois Cartegnie git at videolan.org
Wed Apr 5 19:49:28 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr  5 19:48:43 2017 +0200| [412b0150e6f93e9104fb05d15c417366aff546cc] | committer: Francois Cartegnie

packetizer: mpegvideo: set default rate to field rate

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=412b0150e6f93e9104fb05d15c417366aff546cc
---

 modules/packetizer/mpegvideo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/packetizer/mpegvideo.c b/modules/packetizer/mpegvideo.c
index b39c223..39c94a4 100644
--- a/modules/packetizer/mpegvideo.c
+++ b/modules/packetizer/mpegvideo.c
@@ -194,8 +194,8 @@ static int Open( vlc_object_t *p_this )
     date_Init( &p_sys->prev_iframe_dts, 1, 1 );
     date_Set( &p_sys->prev_iframe_dts, VLC_TS_INVALID );
 
-    p_sys->i_frame_rate = 1;
-    p_sys->i_frame_rate_base = 1;
+    p_sys->i_frame_rate = 2 * 30000;
+    p_sys->i_frame_rate_base = 1001;
     p_sys->b_seq_progressive = true;
     p_sys->b_low_delay = true;
     p_sys->i_seq_old = 0;



More information about the vlc-commits mailing list