]> git.sesse.net Git - vlc/blobdiff - modules/codec/twolame.c
Allowed to use mp2/mp3 to specify layer 2/3 for mpeg audio encoder.
[vlc] / modules / codec / twolame.c
index 91bd55b5c0cfe42e56a2586e935c45e928d8b743..440e152e41e853dd4aa73b68d6b801363ae3cf2d 100644 (file)
@@ -130,9 +130,8 @@ static int OpenEncoder( vlc_object_t *p_this )
     encoder_sys_t *p_sys;
     int i_frequency;
 
-    if( p_enc->fmt_out.i_codec != VLC_CODEC_MPGA &&
-        p_enc->fmt_out.i_codec != VLC_FOURCC('m','p','2','a') &&
-        p_enc->fmt_out.i_codec != VLC_FOURCC('m','p','2',' ') &&
+    if( p_enc->fmt_out.i_codec != VLC_CODEC_MP2 &&
+        p_enc->fmt_out.i_codec != VLC_CODEC_MPGA &&
         !p_enc->b_force )
     {
         return VLC_EGENERIC;