dashenc: Don't require the stream bitrate to be known
authorMartin Storsjö <martin@martin.st>
Wed, 19 Nov 2014 11:49:31 +0000 (13:49 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 22 Nov 2014 20:16:37 +0000 (22:16 +0200)
commitf856d9c2f314c493c672dfb9c876da182525da3d
treecd56833afcca8b8a80b8134d456d693e579948a5
parenteec7f032a903e06d249d1e8aa6630b65292bf40f
dashenc: Don't require the stream bitrate to be known

Don't write any bitrate attribute if it isn't known. As long as one
doesn't want automatic bitrate switching, playback can work just
fine even if it isn't set.

If strict standard compliance is requested, this is still considered
an error, since the attribute is mandatory according to the spec.

Based on a patch by Rodger Combs.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/dashenc.c