Mercurial > libpostproc.hg
comparison postprocess.c @ 64:1912d7e2858d libpostproc
Make filterDelimiters and optionDelimiters two static constant array of
characters, should move them to .rodata.
Patch by Diego 'Flameeyes' Petten flameeyes gmail dot com
author | benoit |
---|---|
date | Thu, 03 Jan 2008 08:39:38 +0000 |
parents | 3dbc6ffbbe43 |
children | 5bef666de27d |
comparison
equal
deleted
inserted
replaced
63:650554bacd12 | 64:1912d7e2858d |
---|---|
743 | 743 |
744 pp_mode_t *pp_get_mode_by_name_and_quality(char *name, int quality) | 744 pp_mode_t *pp_get_mode_by_name_and_quality(char *name, int quality) |
745 { | 745 { |
746 char temp[GET_MODE_BUFFER_SIZE]; | 746 char temp[GET_MODE_BUFFER_SIZE]; |
747 char *p= temp; | 747 char *p= temp; |
748 const char *filterDelimiters= ",/"; | 748 static const char filterDelimiters[] = ",/"; |
749 const char *optionDelimiters= ":"; | 749 static const char optionDelimiters[] = ":"; |
750 struct PPMode *ppMode; | 750 struct PPMode *ppMode; |
751 char *filterToken; | 751 char *filterToken; |
752 | 752 |
753 ppMode= av_malloc(sizeof(PPMode)); | 753 ppMode= av_malloc(sizeof(PPMode)); |
754 | 754 |