# HG changeset patch # User bellard # Date 1060366423 0 # Node ID 5079b6e20e91f665abc145718bd13d7cf8f100c5 # Parent 0316a506aeb0c80e41bfb7d90afd45c7850c30c1 no default bit rate if decoding diff -r 0316a506aeb0 -r 5079b6e20e91 utils.c --- a/utils.c Fri Aug 08 18:02:23 2003 +0000 +++ b/utils.c Fri Aug 08 18:13:43 2003 +0000 @@ -1015,7 +1015,10 @@ 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;