From ca32534337022b5902c78e44f5f234e2e61d1673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Petten=C3=B2?= Date: Thu, 3 Jan 2008 08:42:02 +0000 Subject: [PATCH] =?UTF-8?q?Make=20pp=5Fget=5Fmode=5Fby=5Fname=5Fand=5Fqual?= =?UTF-8?q?ity=20accept=20a=20constant=20string.=20Patch=20by=20Diego=20'F?= =?UTF-8?q?lameeyes'=20Petten=C3=B2=20=20flameeyes=20at=20gmail=20com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 11381 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libpostproc/postprocess.c | 2 +- libpostproc/postprocess.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index f6905de375..e52574c397 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -741,7 +741,7 @@ 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; diff --git a/libpostproc/postprocess.h b/libpostproc/postprocess.h index 1109b2047e..e3ac29e2e4 100644 --- a/libpostproc/postprocess.h +++ b/libpostproc/postprocess.h @@ -56,7 +56,7 @@ void pp_postprocess(uint8_t * src[3], int srcStride[3], * name is the string after "-pp" on the command line * quality is a number from 0 to PP_QUALITY_MAX */ -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); void pp_free_mode(pp_mode_t *mode); pp_context_t *pp_get_context(int width, int height, int flags);