diff utils.c @ 5356:ed7d84e0164d libavcodec

set codec_type on init
author alex
date Tue, 17 Jul 2007 13:35:16 +0000
parents 6661692d34b4
children 7f96f6e16f81
line wrap: on
line diff
--- a/utils.c	Tue Jul 17 12:57:50 2007 +0000
+++ b/utils.c	Tue Jul 17 13:35:16 2007 +0000
@@ -759,6 +759,7 @@
 
     s->av_class= &av_codec_context_class;
 
+    s->codec_type = codec_type;
     if(codec_type == CODEC_TYPE_AUDIO)
         flags= AV_OPT_FLAG_AUDIO_PARAM;
     else if(codec_type == CODEC_TYPE_VIDEO)