[vlc-commits] packetizer: h264: don't overwrite demux set frame length

Francois Cartegnie git at videolan.org
Wed Aug 10 16:47:50 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Aug 10 16:46:23 2016 +0200| [fb5abb9adc2dcd0ef4f73d256ab0c4755f1a0588] | committer: Francois Cartegnie

packetizer: h264: don't overwrite demux set frame length

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

 modules/packetizer/h264.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index f46ea28..f9097bf 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -634,7 +634,7 @@ static block_t *OutputPicture( decoder_t *p_dec )
         }
     }
 
-    if( p_sys->i_time_scale )
+    if( p_sys->i_time_scale && p_pic->i_length == 0 )
     {
         p_pic->i_length = CLOCK_FREQ * i_num_clock_ts *
                           p_sys->i_num_units_in_tick / p_sys->i_time_scale;



More information about the vlc-commits mailing list