OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcc45d6
)
sdp: Use static const char arrays instead of pointers to strings
author
Martin Storsjö
<martin@martin.st>
Tue, 28 Aug 2012 16:24:14 +0000
(19:24 +0300)
committer
Martin Storsjö
<martin@martin.st>
Tue, 28 Aug 2012 19:35:17 +0000
(22:35 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/sdp.c
patch
|
blob
|
history
diff --git
a/libavformat/sdp.c
b/libavformat/sdp.c
index
7413386
..
9bb4815
100644
(file)
--- 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;