[vlc-commits] packetizer: h264: keep recovered state

Francois Cartegnie git at videolan.org
Sat Jun 1 22:06:11 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May 10 18:04:06 2019 +0200| [44daa14e83097094a4453f50135d75b1bcd724e0] | committer: Francois Cartegnie

packetizer: h264: keep recovered state

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

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

diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index 18e4ae871a..23cccb0252 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -551,13 +551,13 @@ static void PacketizeReset( void *p_private, bool b_flush )
         ResetOutputVariables( p_sys );
         p_sys->p_active_pps = NULL;
         p_sys->p_active_sps = NULL;
+        p_sys->b_recovered = false;
+        p_sys->i_recoveryfnum = UINT_MAX;
         /* POC */
         h264_poc_context_init( &p_sys->pocctx );
         p_sys->prevdatedpoc.pts = VLC_TICK_INVALID;
     }
     p_sys->i_next_block_flags = BLOCK_FLAG_DISCONTINUITY;
-    p_sys->b_recovered = false;
-    p_sys->i_recoveryfnum = UINT_MAX;
     date_Set( &p_sys->dts, VLC_TICK_INVALID );
 }
 static block_t *PacketizeParse( void *p_private, bool *pb_ts_used, block_t *p_block )



More information about the vlc-commits mailing list