Browse code

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

James Zern authored on 2010/10/14 16:47:49
Showing 1 changed files
... ...
@@ -58,7 +58,7 @@ static const AVOption options[]={
58 58
 {"iblock", "Sets the impulse block bias", offsetof(OggVorbisContext, iblock), FF_OPT_TYPE_DOUBLE, 0, -15, 0, AV_OPT_FLAG_ENCODING_PARAM},
59 59
 {NULL}
60 60
 };
61
-static const AVClass class = { "libvorbis", NULL, options, LIBAVUTIL_VERSION_INT };
61
+static const AVClass class = { "libvorbis", av_default_item_name, options, LIBAVUTIL_VERSION_INT };
62 62
 
63 63
 static av_cold int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avccontext) {
64 64
     OggVorbisContext *context = avccontext->priv_data ;