]> git.sesse.net Git - vlc/commitdiff
* modules/packetizer/mpegvideo.c: Do not set aspect ratio : in case we're
authorChristophe Massiot <massiot@videolan.org>
Tue, 31 May 2005 15:22:09 +0000 (15:22 +0000)
committerChristophe Massiot <massiot@videolan.org>
Tue, 31 May 2005 15:22:09 +0000 (15:22 +0000)
   transcoding, transcode will take our fmt_out as a fmt_in to libmpeg2.
   libmpeg2.c will then believe that the user has requested a specific
   aspect ratio, which she hasn't. Thus in case of aspect ratio change,
   we're screwed.

modules/packetizer/mpegvideo.c

index 6e26d00ad3e91e7fdc2cb1802685a125ca2c1438..b7cd50a6c4ff61bb28df31c869589a476a686c5b 100644 (file)
@@ -545,10 +545,18 @@ static block_t *ParseMPEGBlock( decoder_t *p_dec, block_t *p_frag )
                     p_frag->p_buffer[9]&0x80 ? VLC_TRUE : VLC_FALSE;
             }
 
+            /* Do not set aspect ratio : in case we're transcoding,
+             * transcode will take our fmt_out as a fmt_in to libmpeg2.
+             * libmpeg2.c will then believe that the user has requested
+             * a specific aspect ratio, which she hasn't. Thus in case
+             * of aspect ratio change, we're screwed. --Meuuh
+             */
+#if 0
             p_dec->fmt_out.video.i_aspect =
                 mpeg2_aspect[p_sys->i_aspect_ratio_info][0] *
                 VOUT_ASPECT_FACTOR /
                 mpeg2_aspect[p_sys->i_aspect_ratio_info][1];
+#endif
 
         }
         else if( i_type == 0x08 )