[vlc-commits] commit: rtp: fix h264 profile-level-id generation (Pierre Ynard )
git at videolan.org
git at videolan.org
Tue Jun 15 19:44:28 CEST 2010
vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Jun 15 01:22:31 2010 +0200| [e94ebca454e2d64f67fe49e21f9de846bc00a766] | committer: Pierre Ynard
rtp: fix h264 profile-level-id generation
This was broken in the previous dedd7cd2ae0864dedfad367c1cbf916e1d315a00
(cherry picked from commit 9f5bb41a34b73cca36ad83c1fd563fe2b2b7fd4a)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=e94ebca454e2d64f67fe49e21f9de846bc00a766
---
modules/stream_out/rtp.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index e062f08..905f3dc 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -1243,7 +1243,8 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
if( i_nal_type == 7 )
{
p_64_sps = vlc_b64_encode_binary( p_buffer, i_size );
- sprintf_hexa( hexa, &p_buffer[5], 3 );
+ /* XXX: nothing ensures that i_size >= 4 ?? */
+ sprintf_hexa( hexa, &p_buffer[1], 3 );
}
else if( i_nal_type == 8 )
{
More information about the vlc-commits
mailing list