[Ffmpeg-cvslog] r8589 - trunk/libavcodec/utils.c

michael subversion
Sun Apr 1 18:13:24 CEST 2007


Author: michael
Date: Sun Apr  1 18:13:24 2007
New Revision: 8589

Modified:
   trunk/libavcodec/utils.c

Log:
make AVCodec.init() optional


Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	(original)
+++ trunk/libavcodec/utils.c	Sun Apr  1 18:13:24 2007
@@ -829,12 +829,14 @@ int avcodec_open(AVCodecContext *avctx, 
     avctx->codec = codec;
     avctx->codec_id = codec->id;
     avctx->frame_number = 0;
+    if(avctx->codec->init){
     ret = avctx->codec->init(avctx);
     if (ret < 0) {
         av_freep(&avctx->priv_data);
         avctx->codec= NULL;
         goto end;
     }
+    }
     ret=0;
 end:
     entangled_thread_counter--;




More information about the ffmpeg-cvslog mailing list