Commit 5b94b7d5 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Twolame: bump priority and accept mp2a fourcc

This restores compatibility with 1.1 command lines and docs

Close #6227
(cherry picked from commit e466c8278d9cd13d055df9375e30a0ab805cc2c3)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e45858ce
......@@ -73,7 +73,7 @@ static const char *const ppsz_stereo_descriptions[] =
vlc_module_begin ()
set_shortname( "Twolame")
set_description( N_("Libtwolame audio encoder") )
set_capability( "encoder", 50 )
set_capability( "encoder", 120 )
set_callbacks( OpenEncoder, CloseEncoder )
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACODEC )
......@@ -132,6 +132,7 @@ static int OpenEncoder( vlc_object_t *p_this )
if( p_enc->fmt_out.i_codec != VLC_CODEC_MP2 &&
p_enc->fmt_out.i_codec != VLC_CODEC_MPGA &&
p_enc->fmt_out.i_codec != VLC_FOURCC( 'm', 'p', '2', 'a' ) &&
!p_enc->b_force )
{
return VLC_EGENERIC;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment