Make pp_get_mode_by_name_and_quality accept a constant string.

Patch by Diego 'Flameeyes' Pettenò  flameeyes at gmail com

Originally committed as revision 11381 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Diego Pettenò 2008-01-03 08:42:02 +00:00 committed by Benoit Fouet
parent a89889164c
commit ca32534337
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);