[vlc-commits] nuv: prepare for void *p_sys

Rémi Denis-Courmont git at videolan.org
Sun Dec 3 16:57:48 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec  3 17:08:57 2017 +0200| [e1870b1bd0c220c23dfd3d8ae16eb9e33f8ecc21] | committer: Rémi Denis-Courmont

nuv: prepare for void *p_sys

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

 modules/demux/nuv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/nuv.c b/modules/demux/nuv.c
index 16aa90f7d4..33355d89c0 100644
--- a/modules/demux/nuv.c
+++ b/modules/demux/nuv.c
@@ -659,7 +659,8 @@ static int HeaderLoad( demux_t *p_demux, header_t *h )
  */
 static int FrameHeaderLoad( demux_t *p_demux, frame_header_t *h )
 {
-    uint8_t* buffer = p_demux->p_sys->fh_buffer;
+    demux_sys_t *p_sys = p_demux->p_sys;
+    uint8_t* buffer = p_sys->fh_buffer;
 
     if( vlc_stream_Read( p_demux->s, buffer, 12 ) != 12 )
         return VLC_EGENERIC;



More information about the vlc-commits mailing list