comparison libmpdemux/muxer_lavf.c @ 32542:775be5bfdcb3

Do not initialize codec_id to a nonsense value (it was initialized to the stream id).
author reimar
date Tue, 16 Nov 2010 19:58:54 +0000
parents adae664c1961
children 3544ba7244bf
comparison
equal deleted inserted replaced
32541:45b3a91e8fb7 32542:775be5bfdcb3
153 return NULL; 153 return NULL;
154 } 154 }
155 spriv->avstream->stream_copy = 1; 155 spriv->avstream->stream_copy = 1;
156 156
157 ctx = spriv->avstream->codec; 157 ctx = spriv->avstream->codec;
158 ctx->codec_id = muxer->avih.dwStreams; 158 ctx->codec_id = CODEC_ID_NONE;
159 switch(type) 159 switch(type)
160 { 160 {
161 case MUXER_TYPE_VIDEO: 161 case MUXER_TYPE_VIDEO:
162 ctx->codec_type = CODEC_TYPE_VIDEO; 162 ctx->codec_type = CODEC_TYPE_VIDEO;
163 break; 163 break;