Add padding to the end of stream.
Fix tag encoding.
Merge branch 'develop' into libav