[vlc-commits] h264 packetizer: don't swap around CC data

Rafaël Carré git at videolan.org
Sun Oct 21 22:39:32 CEST 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Oct 21 22:37:13 2012 +0200| [a992f4101899c9596339a851f0781d0f347a825f] | committer: Rafaël Carré

h264 packetizer: don't swap around CC data

When we output a picture we reinit p_sys->cc_next anyway

sys_t->cc represents the CC data for the picture about to be output
sys_t->cc_next will hold the CC data for the picture currently being input

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

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

diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index a680454..e0a4fa5 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -789,11 +789,7 @@ static block_t *OutputPicture( decoder_t *p_dec )
     p_sys->i_cc_dts = p_pic->i_dts;
     p_sys->i_cc_flags = p_pic->i_flags;
 
-    /* Swap cc buffer */
-    cc_data_t cc_tmp = p_sys->cc;
     p_sys->cc = p_sys->cc_next;
-    p_sys->cc_next = cc_tmp;
-
     cc_Flush( &p_sys->cc_next );
 
     return p_pic;



More information about the vlc-commits mailing list