Commit aa446d2c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

AVI: try again to fix metadata issue: #4765

parent 77ae11cf
...@@ -626,13 +626,13 @@ static int AVI_ChunkRead_strz( stream_t *s, avi_chunk_t *p_chk ) ...@@ -626,13 +626,13 @@ static int AVI_ChunkRead_strz( stream_t *s, avi_chunk_t *p_chk )
} }
} }
p_strz->p_type = strdup( AVI_strz_type[i_index].psz_type ); p_strz->p_type = strdup( AVI_strz_type[i_index].psz_type );
p_strz->p_str = malloc( i_read + 1); p_strz->p_str = malloc( p_strz->i_chunk_size + 1);
if( p_strz->i_chunk_size ) if( p_strz->i_chunk_size )
{ {
memcpy( p_strz->p_str, p_read, p_strz->i_chunk_size ); memcpy( p_strz->p_str, p_read, p_strz->i_chunk_size );
} }
p_strz->p_str[i_read] = 0; p_strz->p_str[p_strz->i_chunk_size] = 0;
#ifdef AVI_DEBUG #ifdef AVI_DEBUG
msg_Dbg( (vlc_object_t*)s, "%4.4s: %s : %s", msg_Dbg( (vlc_object_t*)s, "%4.4s: %s : %s",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment