[vlc-commits] avodec: call es_format_Change() where possible

Steve Lhomme git at videolan.org
Sat Jul 8 18:40:00 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Jul  5 13:36:25 2017 +0200| [6377bdec002210329cd288197abdc25d5fd59b84] | committer: Jean-Baptiste Kempf

avodec: call es_format_Change() where possible

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/mux/asf.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/modules/mux/asf.c b/modules/mux/asf.c
index 809caf60ad..15890e59b9 100644
--- a/modules/mux/asf.c
+++ b/modules/mux/asf.c
@@ -996,14 +996,15 @@ static block_t *asf_header_create( sout_mux_t *p_mux, bool b_broadcast )
             if( tk->i_cat == VIDEO_ES &&
                 tk->fmt.video.i_sar_num != 0 &&
                 tk->fmt.video.i_sar_den != 0 )
+            {
+                vlc_ureduce( &i_dst_num, &i_dst_den,
+                             tk->fmt.video.i_sar_num,
+                             tk->fmt.video.i_sar_den, 0 );
                 break;
+            }
         }
         assert( tk != NULL );
 
-        vlc_ureduce( &i_dst_num, &i_dst_den,
-                     tk->fmt.video.i_sar_num,
-                     tk->fmt.video.i_sar_den, 0 );
-
         msg_Dbg( p_mux, "pixel aspect-ratio: %i/%i", i_dst_num, i_dst_den );
 
         bo_add_guid ( &bo, &asf_object_metadata_guid );



More information about the vlc-commits mailing list