changeset 193:5079b6e20e91 libavformat

no default bit rate if decoding
author bellard
date Fri, 08 Aug 2003 18:13:43 +0000
parents 0316a506aeb0
children 37e7cd3d544d
files utils.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;