1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

no default bit rate if decoding

Originally committed as revision 2117 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Fabrice Bellard 2003-08-08 18:13:43 +00:00
parent cb750e331b
commit 48091512c9

View File

@ -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;