projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5ac275
)
oggenc: Don't use char* to point to a string constant.
author
Alex Converse
<alex.converse@gmail.com>
Sun, 10 Oct 2010 21:15:21 +0000
(21:15 +0000)
committer
Alex Converse
<alex.converse@gmail.com>
Sun, 10 Oct 2010 21:15:21 +0000
(21:15 +0000)
Originally committed as revision 25440 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/oggenc.c
patch
|
blob
|
history
diff --git
a/libavformat/oggenc.c
b/libavformat/oggenc.c
index
335fae7
..
3d9a44b
100644
(file)
--- a/
libavformat/oggenc.c
+++ b/
libavformat/oggenc.c
@@
-355,7
+355,7
@@
static int ogg_write_header(AVFormatContext *s)
}
} else {
uint8_t *p;
- char *cstr = st->codec->codec_id == CODEC_ID_VORBIS ? "vorbis" : "theora";
+ c
onst c
har *cstr = st->codec->codec_id == CODEC_ID_VORBIS ? "vorbis" : "theora";
int header_type = st->codec->codec_id == CODEC_ID_VORBIS ? 3 : 0x81;
int framing_bit = st->codec->codec_id == CODEC_ID_VORBIS ? 1 : 0;