avviddec: take the maximum of the height/coded_height
Otherwise, some h.264 streams (particularly with cropping information) may cause memory corruption after a renegotiation to a smaller size when decoded and then ffmpeg writes past the end of the buffer.
Fixes: #80 (closed)
Edited by Matthew Waters