Commit 2f056e64 authored by bellard's avatar bellard

no default bit rate if decoding


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2117 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent eaa6af98
...@@ -1015,7 +1015,10 @@ AVStream *av_new_stream(AVFormatContext *s, int id) ...@@ -1015,7 +1015,10 @@ AVStream *av_new_stream(AVFormatContext *s, int id)
if (!st) if (!st)
return NULL; return NULL;
avcodec_get_context_defaults(&st->codec); 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->index = s->nb_streams;
st->id = id; st->id = id;
st->start_time = AV_NOPTS_VALUE; 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