Fix RTMP video size issue. As per #131 and #98.