[FFmpeg-cvslog] lavf: initialize demuxer private options.

Anton Khirnov git at videolan.org
Fri May 27 02:53:56 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu May 26 06:59:08 2011 +0200| [9749cdf7754e600ff50dc255519fdb7bb5aad800] | committer: Anton Khirnov

lavf: initialize demuxer private options.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9749cdf7754e600ff50dc255519fdb7bb5aad800
---

 libavformat/utils.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 89ab108..b844ab9 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -424,6 +424,10 @@ int av_open_input_stream(AVFormatContext **ic_ptr,
             err = AVERROR(ENOMEM);
             goto fail;
         }
+        if (fmt->priv_class) {
+            *(const AVClass**)ic->priv_data = fmt->priv_class;
+            av_opt_set_defaults(ic->priv_data);
+        }
     } else {
         ic->priv_data = NULL;
     }



More information about the ffmpeg-cvslog mailing list