From: Laurent Aimar Date: Wed, 29 Apr 2009 19:12:19 +0000 (+0200) Subject: Write aspect ratio only when defined (asf). X-Git-Tag: 1.0.0-rc1~162 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b5ef9cbb7c16a4fddd88a246a1402bcc2c295804;p=vlc Write aspect ratio only when defined (asf). --- diff --git a/modules/mux/asf.c b/modules/mux/asf.c index 7ae86d4c10..600f635aaf 100644 --- a/modules/mux/asf.c +++ b/modules/mux/asf.c @@ -902,7 +902,8 @@ static block_t *asf_header_create( sout_mux_t *p_mux, bool b_broadcast ) /* size of the metadata object */ for( i = 0; i < p_sys->i_track; i++ ) { - if( p_sys->track[i].i_cat == VIDEO_ES ) + const asf_track_t *p_track = &p_sys->track[i]; + if( p_track->i_cat == VIDEO_ES && p_track->fmt.video.i_aspect != 0 ) { i_cm_size = 26 + 2 * (16 + 2 * sizeof("AspectRatio?")); break;