Commit acf2bb91 authored by benoit's avatar benoit

Make pp_get_mode_by_name_and_quality accept a constant string.

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11381 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 12c5de8e
...@@ -741,7 +741,7 @@ char *pp_help= ...@@ -741,7 +741,7 @@ char *pp_help=
"\n" "\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 temp[GET_MODE_BUFFER_SIZE];
char *p= temp; char *p= temp;
......
...@@ -56,7 +56,7 @@ void pp_postprocess(uint8_t * src[3], int srcStride[3], ...@@ -56,7 +56,7 @@ void pp_postprocess(uint8_t * src[3], int srcStride[3],
* name is the string after "-pp" on the command line * name is the string after "-pp" on the command line
* quality is a number from 0 to PP_QUALITY_MAX * 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); void pp_free_mode(pp_mode_t *mode);
pp_context_t *pp_get_context(int width, int height, int flags); pp_context_t *pp_get_context(int width, int height, int flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment