[FFmpeg-cvslog] lavf: remove duplicate assignment in avformat_alloc_context.

Anton Khirnov git at videolan.org
Wed May 18 05:59:21 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Apr 29 11:42:05 2011 +0200| [29e3489602aeb72dbd8ceebfcfa7025e8a57acaf] | committer: Anton Khirnov

lavf: remove duplicate assignment in avformat_alloc_context.

AVClass is already initialized in  avformat_get_context_defaults.

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

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

diff --git a/libavformat/options.c b/libavformat/options.c
index 483b644..22807c3 100644
--- a/libavformat/options.c
+++ b/libavformat/options.c
@@ -86,6 +86,5 @@ AVFormatContext *avformat_alloc_context(void)
     ic = av_malloc(sizeof(AVFormatContext));
     if (!ic) return ic;
     avformat_get_context_defaults(ic);
-    ic->av_class = &av_format_context_class;
     return ic;
 }



More information about the ffmpeg-cvslog mailing list