[vlc-commits] demux: h26x: fix frame duration
Francois Cartegnie
git at videolan.org
Tue Apr 4 14:17:28 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Apr 3 20:24:42 2017 +0200| [b330d5496a421ca0db8eb3c9d9dcdb16118ecdee] | committer: Francois Cartegnie
demux: h26x: fix frame duration
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b330d5496a421ca0db8eb3c9d9dcdb16118ecdee
---
modules/demux/mpeg/h26x.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mpeg/h26x.c b/modules/demux/mpeg/h26x.c
index 3d94f64..ff2f3b7 100644
--- a/modules/demux/mpeg/h26x.c
+++ b/modules/demux/mpeg/h26x.c
@@ -472,8 +472,8 @@ static int Demux( demux_t *p_demux)
unsigned i_nb_fields;
if( i_frame_length > 0 )
{
- i_nb_fields = 3 * i_frame_length * p_sys->frame_rate_num /
- ( p_sys->frame_rate_den * CLOCK_FREQ);
+ i_nb_fields = i_frame_length * 2 * p_sys->frame_rate_num /
+ ( p_sys->frame_rate_den * CLOCK_FREQ );
}
else i_nb_fields = 2;
if( i_nb_fields <= 6 ) /* in the legit range */
More information about the vlc-commits
mailing list