[vlc-devel] commit: Write aspect ratio only when defined (asf). (Laurent Aimar )

git version control git at videolan.org
Thu Apr 30 22:19:23 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Apr 29 21:12:19 2009 +0200| [b5ef9cbb7c16a4fddd88a246a1402bcc2c295804] | committer: Laurent Aimar 

Write aspect ratio only when defined (asf).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b5ef9cbb7c16a4fddd88a246a1402bcc2c295804
---

 modules/mux/asf.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/mux/asf.c b/modules/mux/asf.c
index 7ae86d4..600f635 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;




More information about the vlc-devel mailing list