]> git.sesse.net Git - vlc/blobdiff - modules/codec/mash.cpp
Replaced vout_InitPicture/Format with their equivalent.
[vlc] / modules / codec / mash.cpp
index d4dac4805985cb28a5bc8ba013936a2f1789a67f..c5dce5bfe35fb08226108e8085e09dddef81b735 100644 (file)
@@ -190,9 +190,9 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
     {
         msg_Dbg( p_dec, "video size is perhaps %dx%d", i_width,
                   i_height);
-        vout_InitFormat( &p_dec->fmt_out.video, VLC_CODEC_I420,
-                         i_width, i_height,
-                         VOUT_ASPECT_FACTOR * i_width / i_height );
+        video_format_Setup( &p_dec->fmt_out.video, VLC_CODEC_I420,
+                            i_width, i_height,
+                            VOUT_ASPECT_FACTOR * i_width / i_height );
         p_sys->b_inited = true;
     }
     p_pic = NULL;