]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/opt.h
avcodec/on2avc: add 0x500 stereo support and improve 0x500 mono support
[ffmpeg] / libavutil / opt.h
index 9a76a47f7580fc88db3fa4788294720f3a16c1e9..9430b989e92baacd043fb3c3e7484f5253937ded 100644 (file)
@@ -58,7 +58,7 @@
  * The following example illustrates an AVOptions-enabled struct:
  * @code
  * typedef struct test_struct {
- *     AVClass *class;
+ *     const AVClass *class;
  *     int      int_opt;
  *     char    *str_opt;
  *     uint8_t *bin_opt;
@@ -96,7 +96,7 @@
  * @code
  * test_struct *alloc_test_struct(void)
  * {
- *     test_struct *ret = av_malloc(sizeof(*ret));
+ *     test_struct *ret = av_mallocz(sizeof(*ret));
  *     ret->class = &test_class;
  *     av_opt_set_defaults(ret);
  *     return ret;