[FFmpeg-cvslog] sdp: Use static const char arrays instead of pointers to strings
Martin Storsjö
git at videolan.org
Wed Aug 29 18:09:26 CEST 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Aug 28 19:24:14 2012 +0300| [d4bba93f4d9942ffede16c0f9d810eef7f81fe97] | committer: Martin Storsjö
sdp: Use static const char arrays instead of pointers to strings
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d4bba93f4d9942ffede16c0f9d810eef7f81fe97
---
libavformat/sdp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 7413386..9bb4815 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -154,8 +154,8 @@ static char *extradata2psets(AVCodecContext *c)
{
char *psets, *p;
const uint8_t *r;
- const char *pset_string = "; sprop-parameter-sets=";
- const char *profile_string = "; profile-level-id=";
+ static const char pset_string[] = "; sprop-parameter-sets=";
+ static const char profile_string[] = "; profile-level-id=";
uint8_t *orig_extradata = NULL;
int orig_extradata_size = 0;
const uint8_t *sps = NULL, *sps_end;
More information about the ffmpeg-cvslog
mailing list