[SCM] libav/experimental: no default bit rate if decoding

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:37:04 UTC 2013


The following commit has been merged in the experimental branch:
commit 48091512c911708e93d955987f544d92c8caf8b2
Author: Fabrice Bellard <fabrice at bellard.org>
Date:   Fri Aug 8 18:13:43 2003 +0000

    no default bit rate if decoding
    
    Originally committed as revision 2117 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/utils.c b/libavformat/utils.c
index b9247cf..567e086 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list