From da7548585e1ed0fdb1c337c2f07ab313c99122a5 Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 14 Oct 2010 07:47:49 +0000 Subject: Fix crash when using iblock option (when a warning is logged). Patch by James Zern, jzern google Originally committed as revision 25472 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/libvorbis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/libvorbis.c') diff --git a/libavcodec/libvorbis.c b/libavcodec/libvorbis.c index ab4b4253da..b7466cd1b5 100644 --- a/libavcodec/libvorbis.c +++ b/libavcodec/libvorbis.c @@ -58,7 +58,7 @@ static const AVOption options[]={ {"iblock", "Sets the impulse block bias", offsetof(OggVorbisContext, iblock), FF_OPT_TYPE_DOUBLE, 0, -15, 0, AV_OPT_FLAG_ENCODING_PARAM}, {NULL} }; -static const AVClass class = { "libvorbis", NULL, options, LIBAVUTIL_VERSION_INT }; +static const AVClass class = { "libvorbis", av_default_item_name, options, LIBAVUTIL_VERSION_INT }; static av_cold int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avccontext) { OggVorbisContext *context = avccontext->priv_data ; -- cgit v1.2.3