[SCM] libav/experimental: oggenc: Don't use char* to point to a string constant.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:17:27 UTC 2013
The following commit has been merged in the experimental branch:
commit d256d21e3fcef89251ee3140b24d14a034a8219d
Author: Alex Converse <alex.converse at gmail.com>
Date: Sun Oct 10 21:15:21 2010 +0000
oggenc: Don't use char* to point to a string constant.
Originally committed as revision 25440 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 335fae7..3d9a44b 100644
--- 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";
+ const char *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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list