Commit 48091512 authored by Fabrice Bellard's avatar Fabrice Bellard

no default bit rate if decoding

Originally committed as revision 2117 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment