X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_filter%2Fextract.c;h=f08477f3fed1993bdc23ff4b967fa9c26e836208;hb=5ec2ab65b9da97c218818273f7a8e62cd7eaee09;hp=e848b5a0ce0639e9b2f26737bec639a318621372;hpb=13ae40b0efc4f1b1ce205d9a057537047fcab3f4;p=vlc diff --git a/modules/video_filter/extract.c b/modules/video_filter/extract.c index e848b5a0ce..f08477f3fe 100644 --- a/modules/video_filter/extract.c +++ b/modules/video_filter/extract.c @@ -29,7 +29,7 @@ # include "config.h" #endif -#include +#include #include #include @@ -64,8 +64,9 @@ static void get_custom_from_packedyuv422( picture_t *, picture_t *, int * ); #define COMPONENT_LONGTEXT N_("RGB component to extract. 0 for Red, 1 for Green and 2 for Blue.") #define FILTER_PREFIX "extract-" -static int pi_component_values[] = { 0xFF0000, 0x00FF00, 0x0000FF }; -static const char *ppsz_component_descriptions[] = { "Red", "Green", "Blue" }; +static const int pi_component_values[] = { 0xFF0000, 0x00FF00, 0x0000FF }; +static const char *const ppsz_component_descriptions[] = { + "Red", "Green", "Blue" }; /***************************************************************************** * Module descriptor @@ -85,7 +86,7 @@ vlc_module_begin(); set_callbacks( Create, Destroy ); vlc_module_end(); -static const char *ppsz_filter_options[] = { +static const char *const ppsz_filter_options[] = { "component", NULL }; @@ -249,16 +250,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) return NULL; } - p_outpic->date = p_pic->date; - p_outpic->b_force = p_pic->b_force; - p_outpic->i_nb_fields = p_pic->i_nb_fields; - p_outpic->b_progressive = p_pic->b_progressive; - p_outpic->b_top_field_first = p_pic->b_top_field_first; - - if( p_pic->pf_release ) - p_pic->pf_release( p_pic ); - - return p_outpic; + return CopyInfoAndRelease( p_outpic, p_pic ); } static inline uint8_t crop( int a )