[vlc-devel] commit: rtp sout: adjust scope of variable (Pierre Ynard )

git version control git at videolan.org
Tue Dec 29 18:03:39 CET 2009


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Dec 29 18:03:04 2009 +0100| [1c3dea6380bb097a7cc43b040b25bf272321bedd] | committer: Pierre Ynard 

rtp sout: adjust scope of variable

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

 modules/stream_out/rtp.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index ace4057..7de60c7 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -1237,12 +1237,11 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
 
         case VLC_CODEC_MP4V:
         {
-            char hexa[2*p_fmt->i_extra +1];
-
             id->psz_enc = "MP4V-ES";
             id->pf_packetize = rtp_packetize_split;
             if( p_fmt->i_extra > 0 )
             {
+                char hexa[2*p_fmt->i_extra +1];
                 sprintf_hexa( hexa, p_fmt->p_extra, p_fmt->i_extra );
                 if( asprintf( &id->psz_fmtp,
                               "profile-level-id=3; config=%s;", hexa ) == -1 )




More information about the vlc-devel mailing list