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:
parent
cb750e331b
commit
48091512c9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user