*****************************************************************************/
vlc_module_begin();
+ set_category( CAT_INPUT );
+ set_subcategory( SUBCAT_INPUT_SCODEC );
/* decoder main module */
#if defined(MODULE_NAME_is_ffmpegaltivec) \
|| (defined(CAN_COMPILE_ALTIVEC) && !defined(NO_ALTIVEC_IN_FFMPEG))
set_description( _("ffmpeg audio/video decoder ((MS)MPEG4,SVQ1,H263,WMV,WMA)") );
set_capability( "decoder", 70 );
#endif
+ set_section( N_("Decoding") , NULL );
set_callbacks( OpenDecoder, CloseDecoder );
add_bool( "ffmpeg-dr", 1, NULL, DR_TEXT, DR_TEXT, VLC_TRUE );
/* encoder submodule */
add_submodule();
+ set_section( N_("Encoding") , NULL );
set_description( _("ffmpeg audio/video encoder") );
set_capability( "encoder", 100 );
set_callbacks( E_(OpenEncoder), E_(CloseEncoder) );
i_result = VLC_EGENERIC;
}
- p_dec->p_sys->i_cat = i_cat;
+ if( i_result == VLC_SUCCESS ) p_dec->p_sys->i_cat = i_cat;
return i_result;
}
/* Packed YUV formats */
{ VLC_FOURCC('Y','U','Y','2'), PIX_FMT_YUV422 },
- { VLC_FOURCC('U','Y','V','Y'), PIX_FMT_YUV422 },
+#if LIBAVCODEC_BUILD >= 4720
+ { VLC_FOURCC('U','Y','V','Y'), PIX_FMT_UYVY422 },
+#endif
/* Packed RGB formats */
{ VLC_FOURCC('R','V','1','5'), PIX_FMT_RGB555 },
AUDIO_ES, "G.726 ADPCM Audio" },
#endif
+#if LIBAVCODEC_BUILD >= 4683
+ /* AMR */
+ { VLC_FOURCC('s','a','m','r'), CODEC_ID_AMR_NB,
+ AUDIO_ES, "AMR narrow band" },
+ { VLC_FOURCC('s','a','w','b'), CODEC_ID_AMR_WB,
+ AUDIO_ES, "AMR wide band" },
+#endif
+
/* PCM */
{ VLC_FOURCC('s','8',' ',' '), CODEC_ID_PCM_S8,
AUDIO_ES, "PCM S8" },