From 1c3dea6380bb097a7cc43b040b25bf272321bedd Mon Sep 17 00:00:00 2001 From: Pierre Ynard Date: Tue, 29 Dec 2009 18:03:04 +0100 Subject: [PATCH] rtp sout: adjust scope of variable --- modules/stream_out/rtp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ) -- 2.39.2