avcodec/utils: check AVframe.format being set in avcodec_encode_video2()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 7 Dec 2014 01:10:19 +0000 (02:10 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 7 Dec 2014 01:44:14 +0000 (02:44 +0100)
commit3393cd85459cb9c23dec90373da91559987000ee
treebff6d76e0cfa6e3f66f9ab1b3253ee28a7a68159
parent74080ded9630f9492d9a382815502c141c146900
avcodec/utils: check AVframe.format being set in avcodec_encode_video2()

We dont fail hard if its not set as the old API allowed this and our examples
did in the distant past not set it, these examples still work with the
current code and some encoders.

Based on suggestion by: funman
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utils.c