X-Git-Url: https://git.libav.org/?p=libav.git;a=blobdiff_plain;f=libpostproc%2Fpostprocess.c;h=da21876cc063d0b7709ca2a20bf99b855f1be382;hp=ee09a542460465bf76c669a31353859ec27f94df;hb=31bfd6f34f5b6b2c5bb9641aef33f0a7f9bebc4a;hpb=3b7660b002b11de0aa41c17c167ca0051ae8f9e5;ds=sidebyside diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index ee09a54246..da21876cc0 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -697,7 +697,7 @@ static inline void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int /* -pp Command line Help */ -char *pp_help= +const char *const pp_help= "Available postprocessing filters:\n" "Filters Options\n" "short long name short long option Description\n" @@ -741,12 +741,12 @@ char *pp_help= "\n" ; -pp_mode_t *pp_get_mode_by_name_and_quality(char *name, int quality) +pp_mode_t *pp_get_mode_by_name_and_quality(const char *name, int quality) { char temp[GET_MODE_BUFFER_SIZE]; char *p= temp; - const char *filterDelimiters= ",/"; - const char *optionDelimiters= ":"; + static const char filterDelimiters[] = ",/"; + static const char optionDelimiters[] = ":"; struct PPMode *ppMode; char *filterToken; @@ -982,7 +982,7 @@ static const char * context_to_name(void * ptr) { return "postproc"; } -static AVClass av_codec_context_class = { "Postproc", context_to_name, NULL }; +static const AVClass av_codec_context_class = { "Postproc", context_to_name, NULL }; pp_context_t *pp_get_context(int width, int height, int cpuCaps){ PPContext *c= av_malloc(sizeof(PPContext));