avcodec/proresenc_aw : move picture encoding after frame header write