Commit 9f0fd17c authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'f856d9c2'

* commit 'f856d9c2':
  dashenc: Don't require the stream bitrate to be known

Conflicts:
	libavformat/dashenc.c

See: 5f8fcdd4Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 6d8dda16 f856d9c2
......@@ -445,10 +445,15 @@ static int dash_write_header(AVFormatContext *s)
s->streams[i]->codec->rc_max_rate;
if (bit_rate) {
snprintf(os->bandwidth_str, sizeof(os->bandwidth_str),
" bandwidth=\"%i\"", bit_rate);
" bandwidth=\"%d\"", bit_rate);
} else {
av_log(s, AV_LOG_WARNING, "No bit rate set for stream %d\n", i);
os->bandwidth_str[0] = 0;
int level = s->strict_std_compliance >= FF_COMPLIANCE_STRICT ?
AV_LOG_ERROR : AV_LOG_WARNING;
av_log(s, level, "No bit rate set for stream %d\n", i);
if (s->strict_std_compliance >= FF_COMPLIANCE_STRICT) {
ret = AVERROR(EINVAL);
goto fail;
}
}
ctx = avformat_alloc_context();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment