changeset 5356:ed7d84e0164d libavcodec

set codec_type on init
author alex
date Tue, 17 Jul 2007 13:35:16 +0000
parents 45d083bbbbe7
children 07c6fa478918
files utils.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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)