[vlc-commits] commit: vod: fix h264 profile-level-id generation (Pierre Ynard )
git at videolan.org
git at videolan.org
Tue Jun 15 19:44:29 CEST 2010
vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Jun 15 01:30:23 2010 +0200| [613d7883111ea1a9ab02f053b591c048ef4a42f4] | committer: Pierre Ynard
vod: fix h264 profile-level-id generation
Port 9f5bb41a34b73cca36ad83c1fd563fe2b2b7fd4a to duplicate code
(cherry picked from commit 4e6d8a18da418ffd3657b37bc94d7debe8fc4764)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=613d7883111ea1a9ab02f053b591c048ef4a42f4
---
modules/misc/rtsp.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c
index 206a7b7..2a5b8e6 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -619,7 +619,8 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
{
free( p_64_sps );
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