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

Anton Khirnov git at videolan.org
Sun May 1 00:27:05 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Apr 29 11:42:05 2011 +0200| [9ac1bf88c00dbe7eb2191e2d5325fb104b9d8341] | 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=9ac1bf88c00dbe7eb2191e2d5325fb104b9d8341
---

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

diff --git a/libavformat/options.c b/libavformat/options.c
index 1e5e506..e146d5b 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