提交 48091512 编写于 作者: F Fabrice Bellard

no default bit rate if decoding

Originally committed as revision 2117 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 cb750e33
......@@ -1015,7 +1015,10 @@ AVStream *av_new_stream(AVFormatContext *s, int id)
if (!st)
return NULL;
avcodec_get_context_defaults(&st->codec);
if (s->iformat) {
/* no default bitrate if decoding */
st->codec.bit_rate = 0;
}
st->index = s->nb_streams;
st->id = id;
st->start_time = AV_NOPTS_VALUE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册