diff options
author | Martin Storsjö <martin@martin.st> | 2012-08-28 20:24:14 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-08-28 23:35:17 +0400 |
commit | d4bba93f4d9942ffede16c0f9d810eef7f81fe97 (patch) | |
tree | c45500b01d3ab2411a82dfdf5741f02feed1e6f1 /libavformat/sdp.c | |
parent | bcc45d6348174241e1ec7ce9f8129bebbde4bde6 (diff) |
sdp: Use static const char arrays instead of pointers to strings
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r-- | libavformat/sdp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 74133863f9..9bb4815bae 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; |