From: Pierre Ynard Date: Tue, 29 Dec 2009 17:03:04 +0000 (+0100) Subject: rtp sout: adjust scope of variable X-Git-Tag: 1.1.0-ff~1631 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1c3dea6380bb097a7cc43b040b25bf272321bedd;p=vlc rtp sout: adjust scope of variable --- diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c index ace40571e4..7de60c7564 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 )