aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-08-08 18:13:43 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-08-08 18:13:43 +0000
commit48091512c911708e93d955987f544d92c8caf8b2 (patch)
tree67bf6177f48f87b30952091fb56932921a9934d3 /libavformat/utils.c
parentcb750e331b4e457e053c09e164344fc94aed5ec6 (diff)
downloadffmpeg-48091512c911708e93d955987f544d92c8caf8b2.tar.gz
no default bit rate if decoding
Originally committed as revision 2117 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index b9247cf803..567e086431 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;