use avccontext->frame_size where appropriate